Search before asking
Paimon version
paimon 1.1.1 +flink 1.18
Basically, all the trigger conditions are met:
- DEBUG logging was enabled for org.apache.paimon.flink.lookup.FileStoreLookupFunction in the production environment.
- A lookup join is being used, and the table created is a SecondaryIndexLookupTable.
- The join key is contract_no, which is not the complete primary key. The logs show _KEY_contract_no and _KEY_reg_valid, indicating that the full key also involves reg_valid.
- There is a mismatch in the field order among the lookup projection, Paimon's internal read schema, and the original table schema.
- The DEBUG branch attempts to print the matched rows, which leads to the execution of logRow().
LookupJoin[8] switched from RUNNING to FAILED
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
at org.apache.paimon.flink.lookup.FileStoreLookupFunction.lookup
...
Caused by: java.lang.IndexOutOfBoundsException
at org.apache.paimon.memory.MemorySegment.get
at org.apache.paimon.memory.MemorySegmentUtils.copyToBytes
at org.apache.paimon.data.BinaryString.toString
at org.apache.paimon.flink.lookup.FileStoreLookupFunction.logRow
at org.apache.paimon.flink.lookup.FileStoreLookupFunction.lambda$lookupInternal$4
Compute Engine
flink 1.18
Minimal reproduce step
- DEBUG logging was enabled for org.apache.paimon.flink.lookup.FileStoreLookupFunction in the production environment.
- A lookup join is being used, and the table created is a SecondaryIndexLookupTable.
- The join key is contract_no, which is not the complete primary key. The logs show _KEY_contract_no and _KEY_reg_valid, indicating that the full key also involves reg_valid.
- There is a mismatch in the field order among the lookup projection, Paimon's internal read schema, and the original table schema.
- The DEBUG branch attempts to print the matched rows, which leads to the execution of logRow().
What doesn't meet your expectations?
none
Anything else?
No response
Are you willing to submit a PR?
Search before asking
Paimon version
paimon 1.1.1 +flink 1.18
Basically, all the trigger conditions are met:
LookupJoin[8] switched from RUNNING to FAILED
java.lang.RuntimeException: java.lang.IndexOutOfBoundsException
at org.apache.paimon.flink.lookup.FileStoreLookupFunction.lookup
...
Caused by: java.lang.IndexOutOfBoundsException
at org.apache.paimon.memory.MemorySegment.get
at org.apache.paimon.memory.MemorySegmentUtils.copyToBytes
at org.apache.paimon.data.BinaryString.toString
at org.apache.paimon.flink.lookup.FileStoreLookupFunction.logRow
at org.apache.paimon.flink.lookup.FileStoreLookupFunction.lambda$lookupInternal$4
Compute Engine
flink 1.18
Minimal reproduce step
What doesn't meet your expectations?
none
Anything else?
No response
Are you willing to submit a PR?