From b3e598cfe01d43af20c97f5f6089b1a9b038bedb Mon Sep 17 00:00:00 2001 From: David Yang Date: Tue, 9 Apr 2024 17:08:38 -0700 Subject: [PATCH] [dy] Fix duckdb sql (#4915) --- mage_ai/data_preparation/models/block/sql/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mage_ai/data_preparation/models/block/sql/__init__.py b/mage_ai/data_preparation/models/block/sql/__init__.py index 59a8543b065..23bb0a20ec9 100644 --- a/mage_ai/data_preparation/models/block/sql/__init__.py +++ b/mage_ai/data_preparation/models/block/sql/__init__.py @@ -337,7 +337,7 @@ def execute_sql_code( if should_query: return [ loader.load( - f'SELECT * FROM {table_name}', + f'SELECT * FROM {schema}.{table_name}', verbose=False, ), ]