You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2024. It is now read-only.
# If path only contains one object, raise an error
170
+
iflen(path) ==1:
171
+
raiseValueError('The input path needs to have more than one object in your data diff configuration.\nExpected format: database.schema.table or schema.table')
expected_sql="SELECT column_name, data_type, datetime_precision, numeric_precision, numeric_scale FROM information_schema.columns WHERE table_name = 'test_table' AND table_schema = 'main' and table_catalog = current_catalog()"
# Try to call the select_table_schema with only one value in the tuple
33
+
db_path= ("test_table",)
34
+
self.duckdb_conn.select_table_schema(db_path)
35
+
36
+
# Check that the message in the ValueError is what you expect
37
+
self.assertTrue(
38
+
"The input path needs to have more than one object in your data diff configuration.\nExpected format: database.schema.table or schema.table"
39
+
instr(context.exception)
40
+
)
35
41
36
42
db_path= ("custom_schema", "test_table")
37
43
expected_sql="SELECT column_name, data_type, datetime_precision, numeric_precision, numeric_scale FROM information_schema.columns WHERE table_name = 'test_table' AND table_schema = 'custom_schema' and table_catalog = current_catalog()"
expected_sql="SELECT column_name, data_type, datetime_precision, numeric_precision, numeric_scale FROM custom_db.information_schema.columns WHERE table_name = 'test_table' AND table_schema = 'custom_schema' and table_catalog = 'custom_db'"
0 commit comments