Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0-incubating
-
None
-
None
Description
Calcite treats it as SCALAR (due to JavaRowFormat.optimize), thus field access does not work.
public final IntHolder[] primesCustomBoxed = new IntHolder[]{new IntHolder(1), new IntHolder(3), new IntHolder(5)};
@Test public void testCustomBoxedScalar() { CalciteAssert.that() .with("s", new ReflectiveSchemaTest.CatchallSchema()) .query("select \"value\" from \"s\".\"primesCustomBoxed\"") .returnsUnordered("1", "3", "5"); }
Caused by: arrays first differed at element [0]; expected:<[1]> but was:<[value=org.apache.calcite.test.ReflectiveSchemaTest$IntHolder@2aa3cd93]>