Native tuple sketch functions (tuple_*, Spark 4.2): audit the crate against Java and implement
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 12/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Domaine
- data-engineering
Piste de recherche
This is a multi-part audit and implementation across the Rust tuple feature of the datasketches crate and Comet's Spark expression support, so it is not a starting point. Begin with the Spark 4.2 tuple function definitions and the existing theta sketch expressions in the Comet source, then compare the crate's summary types and union/intersection policies against DataSketches-Java 6.2.0 fixtures. Done means each tuple_* function runs natively with a Spark fallback before 4.2, backed by committed fixtures and tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What is the problem the feature request solves?
Part of #7397.
Spark 4.2 adds Tuple sketch functions: tuple_sketch_agg, tuple_union_agg, tuple_intersection_agg, the tuple_difference / tuple_union / tuple_intersection scalars, and tuple_sketch_estimate, tuple_sketch_summary and tuple_sketch_theta, each in integer and double summary variants. None of them run natively in Comet. The crate's tuple feature arrived in datasketches 0.4.0.
Describe the potential solution
- Score the family with
suggest-native-expressionfirst. This is the lowest priority of the four, because it only exists in the newest Spark version Comet supports. - Do the theta work first, since a tuple sketch is a theta sketch with a summary attached and shares its hashing and set-operation behavior.
- Audit the crate's
tuplefeature against DataSketches-Java 6.2.0 using committed fixtures. The summary types and the policies that combine summaries on union and intersection need to match Spark's exactly, and the serialized summary format has to be readable in both directions. - Implement, test and document as for the other families, with a fallback on Spark versions before 4.2.
- Langage dominant
- Scala
- Étoiles
- 1.3k
- Forks
- 414
- Merge moyen
- 3 j 4 h
- PR mergées (30 j)
- 202
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de apache/datafusion-comet
-
Native MergeRows can panic or produce wrong masks - arrow 59 `and_not` mishandles sliced arraysOuverterequires-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
apache/datafusion-comet#7596 ·
Les mainteneurs répondent en général sous 2 jours
-
requires-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
apache/datafusion-comet#7583 ·
Les mainteneurs répondent en général sous 2 jours
-
bug priority:medium
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
apache/datafusion-comet#7559 · 2 commentaires ·
Les mainteneurs répondent en général sous 2 jours
-
area:writer bug priority:low
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
apache/datafusion-comet#7558 ·
Les mainteneurs répondent en général sous 2 jours
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
apache/datafusion-comet#7557 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de apache/datafusion-comet
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 3 jours
-
bug container
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
lichess-org/lila#22466 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
30-minutes algorithm any-language codewars dart easy elixir hackerrank hacktoberfest haskell help wanted interview-prep julia leetcode lua open-source r scala students zig
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Huerte/algo-solutions-python#226 ·
Les mainteneurs répondent en général sous 1 jour
-
? - Needs Triage bug reliability
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NVIDIA/cudf-spark#16810 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour