You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dtenedor (via GitHub)" <gi...@apache.org> on 2026/01/06 21:17:39 UTC
[PR] [SPARK-53991][SQL][TEST][FOLLOWUP] Improve KLL quantile errors by removing internal details [spark]
dtenedor opened a new pull request, #53702:
URL: https://github.com/apache/spark/pull/53702
### What changes were proposed in this pull request?
This PR improves error messages from the new KLL quantile sketch functions added in https://github.com/apache/spark/pull/52800.
### Why are the changes needed?
The previous error messages reported internal DataSketches library state which was not meaningful for end users of the SQL/DF functions in Apache Spark.
### Does this PR introduce _any_ user-facing change?
Yes, error messages are improved. For example, before this change, we observed the following:
```
SELECT kll_sketch_get_rank_bigint(agg, 5) AS wrong_type
FROM (
SELECT kll_sketch_agg_float(col1) AS agg
FROM t_float_1_5_through_7_11
)
> For function `kll_sketch_get_rank_bigint`, invalid KLL sketch binary data: reqOffset: 40, reqLength: 56, (reqOff + reqLen): 96, allocSize: 60"
```
Now the error message becomes:
```
> "Invalid call to `kll_sketch_get_rank_bigint`; only valid KLL sketch buffers are supported as inputs (such as those produced by the `kll_sketch_agg` function)."
```
### How was this patch tested?
This PR updates golden file test coverage to show the improved error messages.
### Was this patch authored or co-authored using generative AI tooling?
No.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOWUP] Improve KLL quantile errors by removing internal details [spark]
Posted by "dtenedor (via GitHub)" <gi...@apache.org>.
dtenedor commented on PR #53702:
URL: https://github.com/apache/spark/pull/53702#issuecomment-3716398918
cc @cboumalh @cloud-fan
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOW-UP] Improve KLL quantile errors by removing internal details [spark]
Posted by "dtenedor (via GitHub)" <gi...@apache.org>.
dtenedor commented on PR #53702:
URL: https://github.com/apache/spark/pull/53702#issuecomment-3721122962
OK, all CI is passing now. Merging to master and 4.1.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOW-UP] Improve KLL quantile errors by removing internal details [spark]
Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #53702:
URL: https://github.com/apache/spark/pull/53702#issuecomment-3718421643
The `SparkThrowableSuite` failure looks real.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOWUP] Improve KLL quantile errors by removing internal details [spark]
Posted by "cboumalh (via GitHub)" <gi...@apache.org>.
cboumalh commented on code in PR #53702:
URL: https://github.com/apache/spark/pull/53702#discussion_r2666352270
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -4293,7 +4293,7 @@
},
"KLL_SKETCH_INVALID_INPUT" : {
Review Comment:
We may want to consider updating this to: `KLL_INVALID_INPUT_SKETCH_BUFFER` to stay consistent with the errors for Theta and HLL since we also updated the function name below
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOW-UP] Improve KLL quantile errors by removing internal details [spark]
Posted by "dtenedor (via GitHub)" <gi...@apache.org>.
dtenedor closed pull request #53702: [SPARK-53991][SQL][TEST][FOLLOW-UP] Improve KLL quantile errors by removing internal details
URL: https://github.com/apache/spark/pull/53702
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOW-UP] Improve KLL quantile errors by removing internal details [spark]
Posted by "dtenedor (via GitHub)" <gi...@apache.org>.
dtenedor commented on PR #53702:
URL: https://github.com/apache/spark/pull/53702#issuecomment-3720310027
> The SparkThrowableSuite failure looks real.
Thanks, it was! I pushed a fix, let's run the CI again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOWUP] Improve KLL quantile errors by removing internal details [spark]
Posted by "cboumalh (via GitHub)" <gi...@apache.org>.
cboumalh commented on PR #53702:
URL: https://github.com/apache/spark/pull/53702#issuecomment-3716430894
Just one comment above, else LGTM. Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-53991][SQL][TEST][FOLLOWUP] Improve KLL quantile errors by removing internal details [spark]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #53702:
URL: https://github.com/apache/spark/pull/53702#issuecomment-3716394056
## JIRA Issue Information
=== Sub-task SPARK-53991 ===
Summary: Add support for KLL quantiles functions based on DataSketches
Assignee: Daniel Tenedorio
Status: Resolved
Affected: ["4.1.0"]
---
*This comment was automatically generated by GitHub Actions*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org