The procedure is looks like same
I created a new VM and tried it, but it did not reproduce.
Probably something is happening around the application database settings.
For example, a table alias
It's hard to provide a full log, but I've got the SQL that was executed instead, so I'll send it to you.
It looks like the last two SQLs are not running.
Don't worry about different numbers of databases
//Success (metabase 0.34.3)
SELECT collection
.personal_owner_id
, collection
.id
FROM collection
WHERE (personal_owner_id
in (1))
SELECT permissions_group_membership
.user_id
, permissions_group_membership
.group_id
FROM permissions_group_membership
WHERE (user_id
in (1))
SELECT id
FROM metabase_database
WHERE is_sample
= TRUE LIMIT 1
SELECT * FROM metabase_database
ORDER BY lower(name
), lower(engine
)
SELECT collection
.id
FROM collection
WHERE (location
like '/1/%')
SELECT p
.object
FROM permissions_group_membership
pgm
INNER JOIN permissions_group
pg
ON pgm
.group_id
= pg
.id
INNER JOIN permissions
p
ON p
.group_id
= pg
.id
WHERE pgm
.user_id
= 1
SELECT * FROM metabase_database
ORDER BY lower(name
), lower(engine
)
SELECT * FROM metabase_database
ORDER BY lower(name
), lower(engine
)
SELECT collection
.id
FROM collection
WHERE (location
like '/1/%')
SELECT p
.object
FROM permissions_group_membership
pgm
INNER JOIN permissions_group
pg
ON pgm
.group_id
= pg
.id
INNER JOIN permissions
p
ON p
.group_id
= pg
.id
WHERE pgm
.user_id
= 1
SELECT metabase_database
.id
FROM metabase_database
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 1 LIMIT 1
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 3 LIMIT 1
SELECT collection
.id
FROM collection
WHERE (location
like '/1/%')
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 2 LIMIT 1
SELECT report_card
.name
, report_card
.description
, report_card
.database_id
, report_card
.dataset_query
, report_card
.id
, report_card
.collection_id
, report_card
.result_metadata
FROM report_card
WHERE (result_metadata
IS NOT NULL AND archived
= FALSE AND (database_id
in (1, 3, 2)) AND TRUE) ORDER BY lower(name
) ASC
SELECT p
.object
FROM permissions_group_membership
pgm
INNER JOIN permissions_group
pg
ON pgm
.group_id
= pg
.id
INNER JOIN permissions
p
ON p
.group_id
= pg
.id
WHERE pgm
.user_id
= 1
SELECT * FROM metabase_table
WHERE (active
= TRUE AND (db_id
in (2, 3, 1))) ORDER BY lower(schema
) ASC, lower(display_name
) ASC
//Failure (metabase 0.35.3)
SELECT id
FROM metabase_database
WHERE is_sample
= TRUE LIMIT 1
SELECT collection
.personal_owner_id
, collection
.id
FROM collection
WHERE (personal_owner_id
in (1))
SELECT permissions_group_membership
.user_id
, permissions_group_membership
.group_id
FROM permissions_group_membership
WHERE (user_id
in (1))
SELECT * FROM metabase_database
ORDER BY lower(name
), lower(engine
)
SELECT collection
.id
FROM collection
WHERE (location
like '/1/%')
SELECT p
.object
FROM permissions_group_membership
pgm
INNER JOIN permissions_group
pg
ON pgm
.group_id
= pg
.id
INNER JOIN permissions
p
ON p
.group_id
= pg
.id
WHERE pgm
.user_id
= 1
SELECT * FROM metabase_database
ORDER BY lower(name
), lower(engine
)
SELECT collection
.id
FROM collection
WHERE (location
like '/1/%')
SELECT p
.object
FROM permissions_group_membership
pgm
INNER JOIN permissions_group
pg
ON pgm
.group_id
= pg
.id
INNER JOIN permissions
p
ON p
.group_id
= pg
.id
WHERE pgm
.user_id
= 1
SELECT * FROM metabase_database
ORDER BY lower(name
), lower(engine
)
SELECT * FROM metabase_table
WHERE (active
= TRUE AND (db_id
in (7, 4, 5, 3, 6, 2))) ORDER BY lower(schema
) ASC, lower(display_name
) ASC
SELECT collection
.id
FROM collection
WHERE (location
like '/1/%')
SELECT p
.object
FROM permissions_group_membership
pgm
INNER JOIN permissions_group
pg
ON pgm
.group_id
= pg
.id
INNER JOIN permissions
p
ON p
.group_id
= pg
.id
WHERE pgm
.user_id
= 1
SELECT metabase_database
.id
FROM metabase_database
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 7 LIMIT 1
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 4 LIMIT 1
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 6 LIMIT 1
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 3 LIMIT 1
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 2 LIMIT 1
SELECT metabase_database
.engine
FROM metabase_database
WHERE id
= 5 LIMIT 1
SELECT report_card
.name
, report_card
.description
, report_card
.database_id
, report_card
.dataset_query
, report_card
.id
, report_card
.collection_id
, report_card
.result_metadata
FROM report_card
WHERE (result_metadata
IS NOT NULL AND archived
= FALSE AND (database_id
in (7, 4, 6, 3, 2, 5)) AND TRUE) ORDER BY lower(name
) ASC
SELECT * FROM collection
WHERE (id
in (34))