Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.17.0
Description
There are various places in the code where given a RelDataType we need to obtain the respective Java Class/Type. This is done mainly through JavaTypeFactory#getJavaClass. For the Calcite runtime it passes through PhysType#fieldClass and PhysType#getJavaFieldType.
However, when the RelDataType is a struct of one field the returned Class/Type is not the correct one since the struct type is simplified to the type of its component.
Attachments
Issue Links
- is related to
-
CALCITE-2776 Wrong value when accessing struct types with one attribute
- Closed
- links to