Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions application/nlq/data_access/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RelationDatabase():
db_mapping = {
'mysql': 'mysql+pymysql',
'postgresql': 'postgresql+psycopg2',
'redshift': 'postgresql+psycopg2',
'redshift': 'redshift+psycopg2',
'starrocks': 'starrocks',
'clickhouse': 'clickhouse',
# Add more mappings here for other databases
Expand Down Expand Up @@ -75,7 +75,7 @@ def get_metadata_by_connection(cls, connection, schemas):
metadata = db.MetaData()
for s in schemas:
metadata.reflect(bind=engine, schema=s)
metadata.reflect(bind=engine)
# metadata.reflect(bind=engine)
return metadata

@classmethod
Expand Down
3 changes: 2 additions & 1 deletion application/requirements-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ pandas==2.0.3
openpyxl
starrocks==1.0.6
clickhouse-sqlalchemy==0.2.6
sagemaker
sagemaker
sqlalchemy-redshift~=0.8.14
3 changes: 2 additions & 1 deletion application/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ openpyxl
starrocks==1.0.6
clickhouse-sqlalchemy==0.2.6
sagemaker
fastapi~=0.110.1
fastapi~=0.110.1
sqlalchemy-redshift~=0.8.14