We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ed3c4 commit e69283fCopy full SHA for e69283f
redash/query_runner/clickhouse.py
@@ -78,7 +78,7 @@ def port(self, port):
78
79
def _get_tables(self, schema):
80
query = """
81
- SELECT database, table, name
+ SELECT database, table, name, type as data_type
82
FROM system.columns
83
WHERE database NOT IN ('system', 'information_schema', 'INFORMATION_SCHEMA')
84
"""
@@ -94,7 +94,7 @@ def _get_tables(self, schema):
94
if table_name not in schema:
95
schema[table_name] = {"name": table_name, "columns": []}
96
97
- schema[table_name]["columns"].append(row["name"])
+ schema[table_name]["columns"].append({"name": row["name"], "type": row["data_type"]})
98
99
return list(schema.values())
100
0 commit comments