You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new file __init__.py in path ibis-server/app/custom_ibis/backends/clickhouse and add the imports from ibis import util from ibis.backends.clickhouse import Backend
Create a custom function custom_get_schema_using_query to replace ibis-project function _get_schema_using_query
Modify the original raw_sql with "ON CLUSTER 'cluster_name'" for both CREATE and DROP statements
Add the line Backend._get_schema_using_query = custom_get_schema_using_query
Modify the file clickhouse.py by adding import import types from app.custom_ibis_backends.clickhouse import custom_get_schema_using_query
Edit __init__ function by adding line self.connection._get_shcema_using_query = types.MethodType(custom_get_schema_using_query , self.connection)