apache / apache/parquet-java

Statistics is not available for DECIMAL types

Offen
#2,184 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Component: Parquet Priority: Minor Type: bug
Vorherrschende Sprache
Java
Sterne
3.1k
Forks
1.6k
Ø Merge
3 T. 12 Std.
Gemergte PRs (30 T.)
33

Beschreibung

According to parquet format specification columns annotated as DECIMAL should use SIGNED comparator and statistics should be available. The sort order returned by `org.apache.parquet.format.converter.ParquetMetadataConverter` for DECIMAL is `SortOrder.UNKNOWN` which contradicts the specification and makes statistics for DECIMAL types unavailable.

**Reporter**: [Vlad Rozov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=vrozov) / @vrozov
**Assignee**: [Vlad Rozov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=vrozov) / @vrozov
#### Related issues:
- [Allow for Unsigned Statistics in Binary Type](https://github.com/apache/parquet-format/issues/314) (is caused by)
#### PRs and other links:
- [GitHub Pull Request #494](https://github.com/apache/parquet-mr/pull/494)
- [Decimal format specification](https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#decimal)

**Note**: *This issue was originally created as [PARQUET-1322](https://issues.apache.org/jira/browse/PARQUET-1322). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginnen Sie in org.apache.parquet.format.converter.ParquetMetadataConverter und untersuchen Sie, wie die Sortierreihenfolge von DECIMAL bestimmt wird. Vergleichen Sie dieses Verhalten mit der Spezifikation des Decimal-Formats und der zugehörigen Statistikdiskussion; die Aufgabe ist abgeschlossen, wenn DECIMAL-Spalten den angegebenen SIGNED-Vergleicher verwenden und ihre Statistiken verfügbar sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
data-engineering
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.