-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(pinot-driver): Add enableNullHandling=true to query options #9210
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
Conversation
KSDaemon
left a comment
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.
👍🏻 LGTM!
| body: JSON.stringify({ | ||
| sql: query, | ||
| queryOptions: `useMultistageEngine=true;timeoutMs=${this.config.queryTimeout}` | ||
| queryOptions: `useMultistageEngine=true;enableNullHandling=true;timeoutMs=${this.config.queryTimeout}` |
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.
Hi @igorlukanin
Great, the configuration is correct. Is there a possibility to add this same setting as an environment variable?
Where its default value is false?
For example:
enableNullHandling=${this.config.dbNullHandling}; In: cube/packages/cubejs-pinot-driver/src/PinotDriver.ts
queryTimeout: getEnv('dbNullHandling', { dataSource }), So that I can set this variable like this:
CUBEJS_DS_PINOT_DB_NULL_HANDLING=trueThere 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.
@sergisulca I think this a great idea. Would you be open to contribute that? You can use this PR as a reference: #8744
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.
I contributed this in #9213 pull request.
…nv var (#9213) * Add enableNullHandling=true to query options using env var CUBEJS_DB_NULL_HANDLING * Add 'The Startree/Pinot null value support' to docs * fix reference env var * Update docs/pages/product/configuration/data-sources/pinot.mdx Co-authored-by: Konstantin Burkalev <[email protected]> * Update docs/pages/reference/configuration/environment-variables.mdx Co-authored-by: ron-damon <[email protected]> * Update docs/pages/reference/configuration/environment-variables.mdx Co-authored-by: ron-damon <[email protected]> * Update packages/cubejs-backend-shared/src/env.ts Co-authored-by: Konstantin Burkalev <[email protected]> * fix env var name --------- Co-authored-by: Konstantin Burkalev <[email protected]> Co-authored-by: ron-damon <[email protected]>
|
Superseded by #9213 |
|
Hi @igorlukanin , could it be that the changes were not merged into master? Since the Pull Request #9213 was applied to the branch of this PR (
|
Check List
Issue Reference this PR resolves
Requested in Slack: https://cubedevinc.slack.com/archives/C06FQNWFL7N/p1738790583282389?thread_ts=1730929644.841189&cid=C06FQNWFL7N