-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE when joining table to result of a table table join #1686
Comments
Thanks for the detailed report @ppadovani . It looks like a genuine bug (the |
This seems to be a more general problem. If you do a I think the solution here may take a bit of thought -- it is a fundamental issue that relates to the discussion in #804. For now, a workaround that you can try is create a temporary table on top of
The This should work, let me know if you see differently. |
Tried to reverse the join: I can confirm that making an additional table to join to solves the issue as a workaround. |
[2018-08-02 18:02:23,454] ERROR java.lang.NullPointerException io.confluent.ksql.planner.plan.JoinNode$TableToTableJoiner.join(JoinNode.java:479) io.confluent.ksql.planner.plan.JoinNode$TableToTableJoiner.join(JoinNode.java:448) io.confluent.ksql.planner.plan.JoinNode.buildStream(JoinNode.java:187) io.confluent.ksql.planner.plan.ProjectNode.buildStream(ProjectNode.java:124) io.confluent.ksql.planner.plan.KsqlBareOutputNode.buildStream(KsqlBareOutputNode.java:64) io.confluent.ksql.physical.PhysicalPlanBuilder.buildPhysicalPlan(PhysicalPlanBuilder.java:106) io.confluent.ksql.QueryEngine.buildQueryPhysicalPlan(QueryEngine.java:199)
Steps to reproduce:
bin/kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic person
bin/kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic email
bin/kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic personaldata
cat person.json | kafkacat -b localhost:9092 -t person -P -K:
cat email.json | kafkacat -b localhost:9092 -t email -P -K:
cat personal_data.json | kafkacat -b localhost:9092 -t personaldata -P -K:
person.json:
1234:{ "__civ_header_customerId": "85e2823d-806c-4376-83ed-1890890ecb15", "__civ_header_changeId":1533135989116, "EMPLID":"1234", "BIRTHDATE":1533136329, "BIRTHPLACE":"Druex", "BIRTHCOUNTRY":"Grance", "BIRTHSTATE":"France" }
email.json:
1234:{ "__civ_header_customerId":"85e2823d-806c-4376-83ed-1890890ecb15", "__civ_header_changeId":1533145979117, "EMPLID":"1234", "E_ADDR_TYPE":"work", "EMAIL_ADDR":"[email protected]", "PERF_EMAIL_FLAG":"X" }
personaldata.json:
1234:{ "__civ_header_customerId":"85e2823d-806c-4376-83ed-1890890ecb15", "changeId":1533135979113, "EMPLID":"1234", "FIRST_NAME":"Frank", "LAST_NAME":"Paris", "MIDDLE_NAME":"London", "COUNTRY":"France", "ADDRESS1":"1 Rue de Mort", "CITY":"Paris", "STATE":"Paris", "POSTAL":"1234", "SEX":"M", "MAR_STATUS":"SINGLE" }
The last command will cause the NPE to get thrown.
The text was updated successfully, but these errors were encountered: