You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "liujinhui1994 (via GitHub)" <gi...@apache.org> on 2024/12/30 03:19:55 UTC

[I] [SUPPORT] LOOK UP JOIN ERROR [hudi]

liujinhui1994 opened a new issue, #12551:
URL: https://github.com/apache/hudi/issues/12551

   **_Tips before filing an issue_**
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
   
   - Join the mailing list to engage in conversations and get faster support at dev-subscribe@hudi.apache.org.
   
   - If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
   
   **Describe the problem you faced**
   
   A clear and concise description of the problem.
   CREATE TABLE if not exists hudi_catalog_hive.t3_risk_account_p.t_risk_passenger_device (
     passenger_uuid STRING,
     device_id STRING,
     `ds_` STRING,
      proc_time AS PROCTIME(),
      PRIMARY KEY (`passenger_uuid`) NOT ENFORCED
   ) PARTITIONED BY (`passenger_uuid`, `ds_`)
   WITH
     (
       'connector' = 'hudi',
       'path' = 'xxxxxxxx/data/dls/mysql/t3_risk_account_p/t_risk_passenger_device/rt_v1',
       'table.type' = 'MERGE_ON_READ',
       'read.streaming.enabled' = 'true',
       'read.streaming.check-interval' = '4',
       'read.streaming.skip_compaction' = 'true',
       'read.start-commit' = '2024122419402222'
     );
   
   CREATE TEMPORARY TABLE t_passenger (
       `uuid` STRING, 
       `mobile` STRING, 
       `ds_` STRING,
        PRIMARY KEY (`uuid`) NOT ENFORCED
   ) WITH (
     'connector' = 'jdbc',
     xxxxxxxxx
     ..................
   );
   
   SELECT
     r.passenger_uuid,
     r.device_id,
     p.mobile,
     r.ds_ as ds
   FROM
     hudi_catalog_hive.t3_risk_account_p.t_risk_passenger_device  r
   JOIN
     t_passenger
   FOR SYSTEM_TIME AS OF r.proc_time AS p
   ON  r.passenger_uuid = p.uuid
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 1.0.0
   
   * Flink version : 1.18.1
   
   * Hive version : 3.1.3
   
   * Hadoop version : hadoop3
   
   * Storage (HDFS/S3/GCS..) : COS
   
   * Running on Docker? (yes/no) : NO
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   Caused by: org.apache.calcite.runtime.CalciteContextException: From line 10, column 25 to line 10, column 33: Column 'proc_time' not found in table 'r'
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
   	at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:505)
   	at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:932)
   	at org.apache.calcite.sql.SqlUtil.newContextException(SqlUtil.java:917)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(SqlValidatorImpl.java:5247)
   	at org.apache.calcite.sql.validate.DelegatingScope.fullyQualify(DelegatingScope.java:453)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl$DeriveTypeVisitor.visit(SqlValidatorImpl.java:6325)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl$DeriveTypeVisitor.visit(SqlValidatorImpl.java:6287)
   	at org.apache.calcite.sql.SqlIdentifier.accept(SqlIdentifier.java:324)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.deriveTypeImpl(SqlValidatorImpl.java:1869)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(SqlValidatorImpl.java:1860)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSnapshot(SqlValidatorImpl.java:5078)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery(SqlValidatorImpl.java:1039)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom(SqlValidatorImpl.java:3294)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom(SqlValidatorImpl.java:3276)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateJoin(SqlValidatorImpl.java:3400)
   	at org.apache.flink.table.planner.calcite.FlinkCalciteSqlValidator.validateJoin(FlinkCalciteSqlValidator.java:154)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom(SqlValidatorImpl.java:3282)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(SqlValidatorImpl.java:3603)
   	at org.apache.calcite.sql.validate.SelectNamespace.validateImpl(SelectNamespace.java:64)
   	at org.apache.calcite.sql.validate.AbstractNamespace.validate(AbstractNamespace.java:89)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace(SqlValidatorImpl.java:1050)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery(SqlValidatorImpl.java:1025)
   	at org.apache.calcite.sql.SqlSelect.validate(SqlSelect.java:326)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression(SqlValidatorImpl.java:1000)
   	at org.apache.calcite.sql.validate.SqlValidatorImpl.validate(SqlValidatorImpl.java:749)
   	at org.apache.flink.table.planner.calcite.FlinkPlannerImpl.org$apache$flink$table$planner$calcite$FlinkPlannerImpl$$validate(FlinkPlannerImpl.scala:196)
   	... 138 more
   Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Column 'proc_time' not found in table 'r'
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
   	at org.apache.calcite.runtime.Resources$ExInstWithCause.ex(Resources.java:505)
   	at org.apache.calcite.runtime.Resources$ExInst.ex(Resources.java:599)
   	... 163 more
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [SUPPORT] [Flink] [1.0] LOOK UP JOIN ERROR [hudi]

Posted by "liujinhui1994 (via GitHub)" <gi...@apache.org>.
liujinhui1994 closed issue #12551: [SUPPORT] [Flink] [1.0] LOOK UP JOIN ERROR
URL: https://github.com/apache/hudi/issues/12551


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org