Description
org.apache.calcite.adapter.enumerable.RexToLixTranslator#translateLiteral creates ConstantExpression with List contents, and org.apache.calcite.linq4j.tree.ConstantExpression#write just misses a case for List/Map, thus it resorts to plain toString and produces the following code:
public Object current() { final org.eclipse.mat.snapshot.model.IObject v0 = com.github.vlsi.mat.calcite.functions.ISnapshotMethods.getIObject(com.github.vlsi.mat.calcite.SnapshotHo return new Object[] { com.github.vlsi.mat.calcite.functions.ISnapshotMethods.toReference(v0), [0, 1], <-- does not compile org.apache.calcite.runtime.SqlFunctions.toFloat(com.github.vlsi.mat.calcite.functions.IObjectMethods.resolveSimpleValue(v0, "loadFactor")), ...