Andrew Pilloud created BEAM-9657:
------------------------------------

             Summary: ArrayScanToJoinConverter ResolvedLiteral cast to 
ResolvedColumnRef
                 Key: BEAM-9657
                 URL: https://issues.apache.org/jira/browse/BEAM-9657
             Project: Beam
          Issue Type: Bug
          Components: dsl-sql-zetasql
            Reporter: Andrew Pilloud


5 failures in shard 2
{code:java}
Apr 01, 2020 11:48:47 AM 
cloud.dataflow.sql.ExecuteQueryServiceServer$SqlComplianceServiceImpl 
executeQuery
SEVERE: !!!! com.google.zetasql.resolvedast.ResolvedNodes$ResolvedLiteral 
cannot be cast to com.google.zetasql.resolvedast.ResolvedNodes$ResolvedColumnRef
java.lang.ClassCastException: 
com.google.zetasql.resolvedast.ResolvedNodes$ResolvedLiteral cannot be cast to 
com.google.zetasql.resolvedast.ResolvedNodes$ResolvedColumnRef
        at 
org.apache.beam.sdk.extensions.sql.zetasql.translation.ArrayScanToJoinConverter.convert(ArrayScanToJoinConverter.java:62)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.translation.ArrayScanToJoinConverter.convert(ArrayScanToJoinConverter.java:37)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.translation.QueryStatementConverter.convertNode(QueryStatementConverter.java:97)
        at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.Collections$2.tryAdvance(Collections.java:4717)
        at java.util.Collections$2.forEachRemaining(Collections.java:4725)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
        at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.translation.QueryStatementConverter.convertNode(QueryStatementConverter.java:96)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.translation.QueryStatementConverter.convert(QueryStatementConverter.java:84)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.translation.QueryStatementConverter.convertRootQuery(QueryStatementConverter.java:51)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.ZetaSQLPlannerImpl.rel(ZetaSQLPlannerImpl.java:160)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.ZetaSQLQueryPlanner.convertToBeamRelInternal(ZetaSQLQueryPlanner.java:131)
        at 
org.apache.beam.sdk.extensions.sql.zetasql.ZetaSQLQueryPlanner.convertToBeamRel(ZetaSQLQueryPlanner.java:115)
        at 
cloud.dataflow.sql.ExecuteQueryServiceServer$SqlComplianceServiceImpl.executeQuery(ExecuteQueryServiceServer.java:242)
        at 
com.google.zetasql.testing.SqlComplianceServiceGrpc$MethodHandlers.invoke(SqlComplianceServiceGrpc.java:423)
        at 
com.google.zetasql.io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:171)
        at 
com.google.zetasql.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:283)
        at 
com.google.zetasql.io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:711)
        at 
com.google.zetasql.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
        at 
com.google.zetasql.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748) {code}
{code}
Apr 01, 2020 11:48:47 AM 
cloud.dataflow.sql.ExecuteQueryServiceServer$SqlComplianceServiceImpl 
executeQuery
INFO: Processing Sql statement: SELECT a, b FROM (SELECT 1 a) JOIN UNNEST([1, 
2, 3]) b ON b > a
Apr 01, 2020 11:48:48 AM 
cloud.dataflow.sql.ExecuteQueryServiceServer$SqlComplianceServiceImpl 
executeQuery
INFO: Processing Sql statement: SELECT a, b
FROM UNNEST([1, 1, 2, 3, 5, 8, 13, NULL]) a
JOIN UNNEST([1, 2, 3, 5, 7, 11, 13, NULL]) b
  ON a = b
Apr 01, 2020 11:48:48 AM 
cloud.dataflow.sql.ExecuteQueryServiceServer$SqlComplianceServiceImpl 
executeQuery
INFO: Processing Sql statement: SELECT a, b
FROM UNNEST([1, 1, 2, 3, 5, 8, 13, NULL]) a
LEFT JOIN UNNEST([1, 2, 3, 5, 7, 11, 13, NULL]) b
  ON a = b
Apr 01, 2020 11:48:49 AM 
cloud.dataflow.sql.ExecuteQueryServiceServer$SqlComplianceServiceImpl 
executeQuery
INFO: Processing Sql statement: SELECT a, b
FROM UNNEST([1, 2, 3, 4, 5, 6, 7, NULL]) a WITH OFFSET
JOIN UNNEST(["a", "b", "c", "d", "e", "f", "g", NULL]) b WITH OFFSET
  USING (offset);
Apr 01, 2020 11:48:49 AM 
cloud.dataflow.sql.ExecuteQueryServiceServer$SqlComplianceServiceImpl 
executeQuery
INFO: Processing Sql statement: SELECT a, b
FROM UNNEST([1, 2, 3, 4, 5, 6, 7, NULL]) a WITH OFFSET a_off
JOIN UNNEST(["a", "b", "c", "d", "e", "f", "g", NULL]) b WITH OFFSET b_off
  ON a_off = b_off;
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to