twalthr opened a new pull request #6987: [FLINK-8897] [table] Fix rowtime 
materialization issues for filters and joins
URL: https://github.com/apache/flink/pull/6987
 
 
   ## What is the purpose of the change
   
   This PR solves the `"mismatched type" AssertionError` caused by invalid time 
indicator materialization. FLINK-6232 removed the materialization of filters 
for windowed joins, however, this led to mismatches between input types and 
expected input types of `RexNodes`. This PR modifies the window join rule to 
match against a newly materialized expression (`CAST(rowtime)` and 
`PROCTIME(proctime)`) instead.
   
   Additionally, this PR simplifies the general time attribute logic for joins 
and gives better error messages for current limitations (namely no rowtime 
attributes in projections or condiitions). We should fix these limitation by 
some major refactoring as part of FLINK-10211.
   
   
   ## Brief change log
   
   - Materialize conditions of filters and joins again and match against newly 
materialized expressions
   - Simplify code and improve error message
   
   
   ## Verifying this change
   
   - Change is covered by existing tests.
   - New tests in `JoinValidationTest`
   - New test in `TimeAttributesITCase`
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? not applicable
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to