We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename_response_column
In clickhouse-java, there is a setting rename_response_column for renaming the column's names https://github.com/ClickHouse/clickhouse-java/pull/923/files But the config is not support yet in python client:
ch_conf = { 'host': CH_HOST, 'port': CH_PORT, 'username': CH_USER, 'password': CH_PASSWORD, 'rename_response_column': 'REMOVE_PREFIX', } ----------------------------------------------------------------------- 105 name = name[3:] 106 settings[name] = value --> 107 return HttpClient(interface, host, port, username, password, database, settings=settings, **kwargs) 108 raise ProgrammingError(f'Unrecognized client type {interface}') TypeError: __init__() got an unexpected keyword argument 'rename_response_column' 105 name = name[3:] 106 settings[name] = value --> 107 return HttpClient(interface, host, port, username, password, database, settings=settings, **kwargs) 108 raise ProgrammingError(f'Unrecognized client type {interface}') TypeError: __init__() got an unexpected keyword argument 'rename_response_column'
How I can rename column with Alias without using X.name as name?
X.name as name
Example:
with x as (select 1 as a, 2 as id), y as (select 1 as a, 3 as id) select y.a, y.id from x join y using (a)
will return:
y.a|y.id| ---+----+ 1| 3|
but the expected will be:
a| id| ---+----+ 1| 3|
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In clickhouse-java, there is a setting
rename_response_column
for renaming the column's names https://github.com/ClickHouse/clickhouse-java/pull/923/filesBut the config is not support yet in python client:
How I can rename column with Alias without using
X.name as name
?Example:
will return:
but the expected will be:
The text was updated successfully, but these errors were encountered: