jhkcool created CALCITE-4695:
--------------------------------

             Summary: The method of RelToSqlConverter.visit(Join e) throw 
NullPointerException
                 Key: CALCITE-4695
                 URL: https://issues.apache.org/jira/browse/CALCITE-4695
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.27.0
         Environment: centos: Win10

JDK: hostspot 1.8.0_291 
            Reporter: jhkcool


test sql:

select *
from "sales_fact_1997" as s
join "customer" as c
 on s."customer_id" = c."customer_id"
join "product" as p
 on s."product_id" = p."product_id"
where c."city" = 'San Francisco'
and p."brand_name" = 'Washington'

(from JdbcTest.testAlmostBushy())

when I try to convert relnode to sql, throw NullPointerException, the code is 
as follows:

RelToSqlConverter relToSqlConverter = new 
RelToSqlConverter(SqlDialect.DatabaseProduct.CALCITE.getDialect());
SqlImplementor.Result joinResult = 
relToSqlConverter.visit((EnumerableMergeJoin)rootRel4);

 



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

Reply via email to