Fixed formatting #108
Annotations
10 errors and 2 warnings
Test:
RelToSqlConverterTest.java#L7246
0.0sec org.apache.calcite.rel.rel2sql.RelToSqlConverterTest > testMerge()
org.apache.calcite.tools.ValidationException: java.lang.RuntimeException: Namespace returned by identity hashmap has different enclosing node. Namespace to register: `DEPT` AS `t`, Namespace returned by map: `DEPT` AS `t`
at app//org.apache.calcite.prepare.PlannerImpl.validate(PlannerImpl.java:228)
at app//org.apache.calcite.rel.rel2sql.RelToSqlConverterTest$Sql.exec(RelToSqlConverterTest.java:7807)
at app//org.apache.calcite.rel.rel2sql.RelToSqlConverterTest$Sql.ok(RelToSqlConverterTest.java:7773)
at app//org.apache.calcite.rel.rel2sql.RelToSqlConverterTest.testMerge(RelToSqlConverterTest.java:7246)
Caused by: java.lang.RuntimeException: Namespace returned by identity hashmap has different enclosing node. Namespace to register: `DEPT` AS `t`, Namespace returned by map: `DEPT` AS `t`
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerNamespace(SqlValidatorImpl.java:2281)
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(SqlValidatorImpl.java:2536)
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(SqlValidatorImpl.java:2413)
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(SqlValidatorImpl.java:2820)
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(SqlValidatorImpl.java:2753)
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(SqlValidatorImpl.java:2992)
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(SqlValidatorImpl.java:3025)
at org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(SqlValidatorImpl.java:2753)
at org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression(SqlValidatorImpl.java:1089)
at org.apache.calcite.sql.validate.SqlValidatorImpl.validate(SqlValidatorImpl.java:797)
at org.apache.calcite.prepare.PlannerImpl.validate(PlannerImpl.java:226)
... 3 more
|
Test:
EnumerableRepeatUnionTest.java#L379
0.1sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testRepeatUnionWithCorrelateWithTransientScanOnItsRight()
java.sql.SQLException: Error while executing SQL "?": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("#DELTA#", v1stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.linq4j.Linq4j.asEnumerable(((org.apache.calcite.test.schemata.hr.HierarchySchema) ((org.apache.calcite.adapter.java.ReflectiveSchema) org.apache.calcite.schema.Schemas.getExistingSubSchema(root.getRootSchema(), "s").unwrap(org.apache.calcite.adapter.java.ReflectiveSchema.class)).getTarget()).emps);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (((org.apache.calcite.test.schemata.hr.Employee) inputEnumerator.current()).empid == 2) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
final org.apache.calcite.test.schemata.hr.Employee current = (org.apache.calcite.test.schemata.hr.Employee) inputEnumerator.current();
return new Object[] {
current.empid,
current.name};
}
};
}
};
final org.apache.calcite.linq4j.Enumerable _inputEnumerable0 = org.apache.calcite.linq4j.Linq4j.asEnumerable(((org.apache.calcite.test.schemata.hr.HierarchySchema) ((org.apache.calcite.adapter.java.ReflectiveSchema) org.apache.calcite.schema.Schemas.getExistingSubSchema(root.getRootSchema(), "s").unwrap(org.apache.calcite.adapter.java.ReflectiveSchema.class)).getTarget()).hierarchies).correlateJoin(org.apache.calcite.linq4j.JoinType.INNER, new org.apache.calcite.linq4j.function.Function1() {
public org.apache.calcite.linq4j.AbstractEnumerable apply(final org.apache.calcite.test.schemata.hr.HierarchySchema.Hierarchy $cor0) {
{
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
return new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = interpreter.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(((Object[]) inputEnumerator.current())[0]) == $cor0.managerid) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return org.apache.calcite.runtime.SqlFunctions.toInt(((Object[]) inputEnumerator.current())[0]);
}
};
}
};
}
}
public Object apply(final Obje
|
Test:
EnumerableRepeatUnionTest.java#L262
0.0sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testGenerateNumbersWithNull()
java.sql.SQLException: Error while executing SQL "?": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("DELTA", v1stashed);
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.runtime.Enumerables.slice0(interpreter);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
final Boolean binary_call_value = (Integer) inputEnumerator.current() == null ? null : Boolean.valueOf(((Integer) inputEnumerator.current()).intValue() < 3);
if (binary_call_value != null && org.apache.calcite.runtime.SqlFunctions.toBoolean(binary_call_value)) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return (Integer) inputEnumerator.current() == null ? null : Integer.valueOf(((Integer) inputEnumerator.current()).intValue() + 1);
}
};
}
};
return org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("DELTA")).getModifiableCollection(), org.apache.calcite.linq4j.Linq4j.asEnumerable(new Integer[] {
Integer.valueOf(1),
Integer.valueOf(2),
null,
Integer.valueOf(3)})), org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("DELTA")).getModifiableCollection(), input), -1, true, org.apache.calcite.linq4j.function.Functions.identityComparer(), new org.apache.calcite.linq4j.function.Function0() {
public Object apply() {
return root.getRootSchema().removeTable("DELTA");
}
}
);
}
public Class getElementType() {
return java.lang.Integer.class;
}
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164)
at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509)
at org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest.testGenerateNumbersWithNull(EnumerableRepeatUnionTest.java:262)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1
at app//org.apache.
|
Test:
EnumerableRepeatUnionTest.java#L93
0.1sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testGenerateNumbers2UsingSqlCheckPlan()
java.sql.SQLException: Error while executing SQL "WITH RECURSIVE aux(i) AS (
VALUES (0) UNION SELECT MOD((i+1), 10) FROM aux WHERE i < 10 ) SELECT * FROM aux
": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("aux", v1stashed);
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.runtime.Enumerables.slice0(interpreter);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) < 10) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return org.apache.calcite.runtime.SqlFunctions.mod(org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) + 1, 10);
}
};
}
};
return org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("aux")).getModifiableCollection(), org.apache.calcite.linq4j.Linq4j.asEnumerable(new Integer[] {
0})), org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("aux")).getModifiableCollection(), input), -1, false, org.apache.calcite.linq4j.function.Functions.identityComparer(), new org.apache.calcite.linq4j.function.Function0() {
public Object apply() {
return root.getRootSchema().removeTable("aux");
}
}
);
}
public Class getElementType() {
return int.class;
}
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164)
at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509)
at org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest.testGenerateNumbers2UsingSqlCheckPlan(EnumerableRepeatUnionTest.java:93)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1
at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389)
at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598)
.
|
Test:
EnumerableRepeatUnionTest.java#L300
0.1sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testRepeatUnionWithCorrelateWithTransientScanOnItsRightUsingSql()
java.sql.SQLException: Error while executing SQL " WITH RECURSIVE delta(empid, name) as (
SELECT empid, name FROM emps WHERE empid = 2
UNION ALL
SELECT e.empid, e.name FROM delta d
JOIN hierarchies h ON d.empid = h.managerid
JOIN emps e ON h.subordinateid = e.empid
)
SELECT empid, name FROM delta
": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("delta", v1stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.linq4j.Linq4j.asEnumerable(((org.apache.calcite.test.schemata.hr.HierarchySchema) ((org.apache.calcite.adapter.java.ReflectiveSchema) org.apache.calcite.schema.Schemas.getExistingSubSchema(root.getRootSchema(), "s").unwrap(org.apache.calcite.adapter.java.ReflectiveSchema.class)).getTarget()).emps);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (((org.apache.calcite.test.schemata.hr.Employee) inputEnumerator.current()).empid == 2) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
final org.apache.calcite.test.schemata.hr.Employee current = (org.apache.calcite.test.schemata.hr.Employee) inputEnumerator.current();
return new Object[] {
current.empid,
current.name};
}
};
}
};
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
final org.apache.calcite.linq4j.AbstractEnumerable left = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = interpreter.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
return inputEnumerator.moveNext();
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return org.apache.calcite.runtime.SqlFunctions.toInt(((Object[]) inputEnumerator.current())[0]);
}
};
}
};
final org.apache.calcite.linq4j.Enumerable _inputEnumerable0 = left.correlateJoin(org.apache.calcite.linq4j.JoinType.INNER, new org.apache.calcite.linq4j.function.Function1() {
public org.apache.calcite.linq4j.AbstractEnumerable apply(final Integer $box$cor0) {
{
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.linq4j.Linq4j.asEnumerable(((org.apache.calcite.test.schemata.hr.HierarchySchema) ((org.apache.calcite.adapter.java.ReflectiveSchema) org.apache.calcite.schema.Schemas.getExistingSubSchema(root.getRootSchema(), "s").unwrap(org.apache.calcite.adapter.java.ReflectiveSchema.class)).getTarget()).hierarchies);
return new org.apache.calcite.linq4j.AbstractEnu
|
Test:
EnumerableRepeatUnionTest.java#L237
0.0sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testGenerateNumbersNestedRecursion()
java.sql.SQLException: Error while executing SQL "?": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.schema.TransientTable v2stashed = root.get("v2stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v3stashed = root.get("v3stashed", org.apache.calcite.rel.RelNode.class);
final org.apache.calcite.rel.RelNode v4stashed = root.get("v4stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("T_OUT", v1stashed);
root.getRootSchema().add("T_IN", v2stashed);
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v3stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.runtime.Enumerables.slice0(interpreter);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) < 9) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) + 1;
}
};
}
};
final org.apache.calcite.interpreter.Interpreter interpreter0 = new org.apache.calcite.interpreter.Interpreter(
root,
v4stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable0 = org.apache.calcite.runtime.Enumerables.slice0(interpreter0);
final org.apache.calcite.linq4j.AbstractEnumerable input0 = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable0.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) < 100) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) * 10;
}
};
}
};
return org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("T_OUT")).getModifiableCollection(), org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("T_IN")).getModifiableCollection(), org.apache.calcite.linq4j.Linq4j.asEnumerable(new Integer[] {
1})), org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("T_IN")).getModifiableCollection(), input), -1, true, org.apache.calcite.
|
Test:
EnumerableRepeatUnionTest.java#L189
0.0sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testFactorial()
java.sql.SQLException: Error while executing SQL "?": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("D", v1stashed);
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = interpreter.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(((Object[]) inputEnumerator.current())[0]) < 7) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
final Object[] current = (Object[]) inputEnumerator.current();
final int binary_call_value = org.apache.calcite.runtime.SqlFunctions.toInt(current[0]) + 1;
return new Object[] {
binary_call_value,
binary_call_value * org.apache.calcite.runtime.SqlFunctions.toInt(current[1])};
}
};
}
};
return org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("D")).getModifiableCollection(), org.apache.calcite.linq4j.Linq4j.asEnumerable(new Object[] {
new Object[] {
0,
1}})), org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("D")).getModifiableCollection(), input), -1, true, org.apache.calcite.linq4j.function.Functions.arrayComparer(), new org.apache.calcite.linq4j.function.Function0() {
public Object apply() {
return root.getRootSchema().removeTable("D");
}
}
);
}
public Class getElementType() {
return java.lang.Object[].class;
}
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164)
at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509)
at org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest.testFactorial(EnumerableRepeatUnionTest.java:189)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1
at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389)
at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598)
... 6 more
Next exception 1: [CIRCULAR REFEREN
|
Test:
EnumerableRepeatUnionTest.java#L148
0.0sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testGenerateNumbers3()
java.sql.SQLException: Error while executing SQL "?": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("AUX", v1stashed);
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = interpreter.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(((Object[]) inputEnumerator.current())[0]) < 10) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
final Object[] current = (Object[]) inputEnumerator.current();
return new Object[] {
org.apache.calcite.runtime.SqlFunctions.mod(org.apache.calcite.runtime.SqlFunctions.toInt(current[0]) + 1, 10),
current[1]};
}
};
}
};
return org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("AUX")).getModifiableCollection(), org.apache.calcite.linq4j.Linq4j.asEnumerable(new Object[] {
new Object[] {
0,
0}})), org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("AUX")).getModifiableCollection(), input), -1, false, org.apache.calcite.linq4j.function.Functions.arrayComparer(), new org.apache.calcite.linq4j.function.Function0() {
public Object apply() {
return root.getRootSchema().removeTable("AUX");
}
}
);
}
public Class getElementType() {
return java.lang.Object[].class;
}
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164)
at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509)
at org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest.testGenerateNumbers3(EnumerableRepeatUnionTest.java:148)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1
at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389)
at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598)
... 6 more
Next exception 1: [CIRCULAR REFERENCE SQLException]
Next exception 2: java.lang.Runtim
|
Test:
EnumerableRepeatUnionTest.java#L120
0.0sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testGenerateNumbers2()
java.sql.SQLException: Error while executing SQL "?": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("AUX", v1stashed);
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.runtime.Enumerables.slice0(interpreter);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) < 10) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return org.apache.calcite.runtime.SqlFunctions.mod(org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) + 1, 10);
}
};
}
};
return org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("AUX")).getModifiableCollection(), org.apache.calcite.linq4j.Linq4j.asEnumerable(new Integer[] {
0})), org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("AUX")).getModifiableCollection(), input), -1, false, org.apache.calcite.linq4j.function.Functions.identityComparer(), new org.apache.calcite.linq4j.function.Function0() {
public Object apply() {
return root.getRootSchema().removeTable("AUX");
}
}
);
}
public Class getElementType() {
return int.class;
}
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164)
at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509)
at org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest.testGenerateNumbers2(EnumerableRepeatUnionTest.java:120)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1
at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389)
at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598)
... 6 more
Next exception 1: [CIRCULAR REFERENCE SQLException]
Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code
|
Test:
EnumerableRepeatUnionTest.java#L70
0.0sec org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest > testGenerateNumbers()
java.sql.SQLException: Error while executing SQL "?": Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumerable bind(final org.apache.calcite.DataContext root) {
final org.apache.calcite.schema.TransientTable v1stashed = root.get("v1stashed", org.apache.calcite.schema.TransientTable.class);
final org.apache.calcite.rel.RelNode v2stashed = root.get("v2stashed", org.apache.calcite.rel.RelNode.class);
root.getRootSchema().add("DELTA", v1stashed);
final org.apache.calcite.interpreter.Interpreter interpreter = new org.apache.calcite.interpreter.Interpreter(
root,
v2stashed);
final org.apache.calcite.linq4j.Enumerable _inputEnumerable = org.apache.calcite.runtime.Enumerables.slice0(interpreter);
final org.apache.calcite.linq4j.AbstractEnumerable input = new org.apache.calcite.linq4j.AbstractEnumerable(){
public org.apache.calcite.linq4j.Enumerator enumerator() {
return new org.apache.calcite.linq4j.Enumerator(){
public final org.apache.calcite.linq4j.Enumerator inputEnumerator = _inputEnumerable.enumerator();
public void reset() {
inputEnumerator.reset();
}
public boolean moveNext() {
while (inputEnumerator.moveNext()) {
if (org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) < 10) {
return true;
}
}
return false;
}
public void close() {
inputEnumerator.close();
}
public Object current() {
return org.apache.calcite.runtime.SqlFunctions.toInt(inputEnumerator.current()) + 1;
}
};
}
};
return org.apache.calcite.linq4j.EnumerableDefaults.repeatUnion(org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("DELTA")).getModifiableCollection(), org.apache.calcite.linq4j.Linq4j.asEnumerable(new Integer[] {
1})), org.apache.calcite.linq4j.EnumerableDefaults.lazyCollectionSpool(((org.apache.calcite.schema.ModifiableTable) root.getRootSchema().getTable("DELTA")).getModifiableCollection(), input), -1, true, org.apache.calcite.linq4j.function.Functions.identityComparer(), new org.apache.calcite.linq4j.function.Function0() {
public Object apply() {
return root.getRootSchema().removeTable("DELTA");
}
}
);
}
public Class getElementType() {
return int.class;
}
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:164)
at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:228)
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:566)
at org.apache.calcite.test.CalciteAssert$AssertQuery.lambda$returns$1(CalciteAssert.java:1495)
at org.apache.calcite.test.CalciteAssert$AssertQuery.withConnection(CalciteAssert.java:1434)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1493)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1483)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returnsOrdered(CalciteAssert.java:1509)
at org.apache.calcite.test.enumerable.EnumerableRepeatUnionTest.testGenerateNumbers(EnumerableRepeatUnionTest.java:70)
Suppressed: org.apache.calcite.util.TestUtil$ExtraInformation: With materializationsEnabled=false, limit=-1
at app//org.apache.calcite.util.TestUtil.rethrow(TestUtil.java:389)
at app//org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:598)
... 6 more
Next exception 1: [CIRCULAR REFERENCE SQLException]
Next exception 2: java.lang.RuntimeException: Error while compiling generated Java code:
public org.apache.calcite.linq4j.Enumer
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v2, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The logs for this run have expired and are no longer available.
Loading