-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
Add custom query settings support #122
Conversation
@lio-p is attempting to deploy a commit to the ClickHouse Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -724,6 +730,7 @@ export async function getPackageRanking(package_name, min_date, max_date, countr | |||
const columns = ['project', 'date'] | |||
if (country_code) { columns.push('country_code') } | |||
const table = findOptimalTable(columns) | |||
|
|||
return query('getPackageRanking',`WITH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but query needto actually consume and send in the query...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The custom settings are passed directly to the clickhouse.query function. See line 761 in clickhouse.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
surely query needs to actually use?
i.e. |
This PR adds support to add custom query settings using environment variable.
Related: #119
Example:
Add automatically to the query getPackageRanking the query level settings
allow_experimental_parallel_reading_from_replicas
andmax_threads