We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77806d7 commit 9c4ab4bCopy full SHA for 9c4ab4b
dtable_events/automations/actions.py
@@ -1693,13 +1693,12 @@ def get_columns_dict(self, table_id):
1693
return column_dict
1694
1695
def query_table_rows(self, table_name, column_names):
1696
- sql_columns = ', '.join(column_names)
+ sql_columns = ', '.join(['`' + col_name + '`' for col_name in column_names])
1697
limit = 0
1698
step = 10000
1699
result_rows = []
1700
while True:
1701
- # sql = f"select `_id`, {sql_columns} from `{table_name}` limit {limit},{step}"
1702
- sql = f"select * from `{table_name}`"
+ sql = f"select `_id`, {sql_columns} from `{table_name}` limit {limit},{step}"
1703
try:
1704
results = self.auto_rule.dtable_db_api.query(sql)
1705
except Exception as e:
0 commit comments