Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.27.0
Description
The index-based access via the "ITEM" operator for operands of row/struct type is currently experimental and disabled by default (introduced in CALCITE-4354).
Its implementation uses the fields order from `getDeclaredFields()`, a JVM-specific feature, this might lead to silent data corruption (see PR-2230).
The aim of the ticket is to improve the feature by relying on the safer fields order
from the struct field type itself (i.e., `relType.getFields()[index]`) so that we can enable it by default.
Attachments
Issue Links
- relates to
-
CALCITE-5701 Add NAMED_STRUCT function (enabled in Spark library)
- Open
-
CALCITE-4354 Allow ITEM operator on ROW/STRUCT data types
- Closed
- links to