Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
avatica-1.13.0
Description
The accessors for struct types with one attribute are not created correctly leading to wrong values when the internal representation for structured types is an Object[].
For example consider the following query:
select * from (values (1, ROW(1)), (2, ROW(2))) as v(id,struct);
Executing this query on calcite returns:
+----+--------------------------------+ | ID | STRUCT | +----+--------------------------------+ | 1 | {[Ljava.lang.Object;@4ff4357f} | | 2 | {[Ljava.lang.Object;@49cb9cb5} | +----+--------------------------------+
instead of:
+----+--------+ | ID | STRUCT | +----+--------+ | 1 | {1} | | 2 | {2} | +----+--------+
Attachments
Issue Links
- relates to
-
CALCITE-2677 Struct types with one field are not mapped correctly to Java Classes
- Closed
- links to