-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: clickbench type err #15773
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
fix: clickbench type err #15773
Conversation
Weijun-H
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.
Thanks @chenkovsky 👍 I tested cargo bench --profile=dev --bench sql_planner -- physical_plan_clickbench_all, and it worked perfectly.
| ELSE 0 | ||
| END > 1920 -- Extract and validate resolution parameter | ||
| AND levenshtein("UTMSource", "UTMCampaign") < 3 -- Verify UTM parameter similarity | ||
| AND levenshtein(CAST("UTMSource" AS STRING), CAST("UTMCampaign" AS STRING)) < 3 -- Verify UTM parameter similarity |
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.
| AND levenshtein(CAST("UTMSource" AS STRING), CAST("UTMCampaign" AS STRING)) < 3 -- Verify UTM parameter similarity | |
| AND levenshtein('UTMSource', 'UTMCampaign') < 3 -- Verify UTM parameter similarity |
UPDATE:
ignore this suggection
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.
@Weijun-H Thank you. but I have a question. does single quotation mean literal string and double quotation mean column name? so CAST("UTMSource" AS STRING), and 'UTMSource' have different meaning?
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.
Apologies, I misspoke earlier. In this case, we can’t use ‘UTMSource’ here because it’s a column name.
|
Thank you |
|
Thank you so much @chenkovsky and @xudong963 |
Which issue does this PR close?
Cargo bench --bench sql_planneris failing #15753.Rationale for this change
column types of UTMSource and UTMCampaign in clickbench_partitioned are binary, but in datafusion/core/tests/data/clickbench_hits_10.parquet they are string.
What changes are included in this PR?
add a cast in sql
Are these changes tested?
Manually run clickbench
Are there any user-facing changes?
No