Skip to content

Commit a1d008e

Browse files
committed
Update query_fileview to display errors when a schema column is too small instead of falling back to an AccessCredentialsError
1 parent 1869913 commit a1d008e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

schematic/store/synapse.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ def query_fileview(
419419
raise ValueError(
420420
f"The columns {missing_column} specified in the query do not exist in the fileview. Please make sure that the column names are correct and that all expected columns have been added to the fileview."
421421
)
422+
elif "The column size needs to be at least" in exception_text:
423+
raise ValueError(
424+
f"Error in the fileview schema. " + exception_text
425+
)
422426
else:
423427
raise AccessCredentialsError(self.storageFileview)
424428

0 commit comments

Comments
 (0)