File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def __init__(
4949
5050 def _can_read_columns_table (self ) -> bool :
5151 try :
52- self .spark .sql (f"SELECT * FROM { self .COLUMNS_TABLE_NAME } LIMIT 1" )
52+ self .spark .sql (f"SELECT * FROM { self .COLUMNS_TABLE_NAME } WHERE table_catalog = 'system' LIMIT 1" )
5353 return True
5454 except Exception as e :
5555 self .logger .error (f"Error while reading table { self .COLUMNS_TABLE_NAME } : { e } " )
@@ -314,7 +314,8 @@ def select_by_classes(
314314 )
315315
316316 return self ._msql (
317- f"SELECT { from_statement } , to_json(struct(*)) AS row_content FROM { from_tables } " , min_score = min_score
317+ f"SELECT { from_statement } , to_json(struct(*)) AS row_content FROM { from_tables } " ,
318+ min_score = min_score ,
318319 )
319320
320321 def delete_by_class (
You can’t perform that action at this time.
0 commit comments