You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b9874e4
Browse filesBrowse the repository at this point in the historyBrowse files
[fix](paimon) Resolve static LTZ partition values from the TIMESTAMPTZ binding only
### What problem does this PR solve?
Issue Number: None
Related PR: #65868, #68786
Problem Summary: #68786 binds every Paimon TIMESTAMP WITH LOCAL TIME ZONE
column as TIMESTAMPTZ; enable.mapping.timestamp_tz no longer selects a
DATETIMEV2 binding. The cast value of a static LTZ partition is therefore
always the instant in UTC with its offset, and the session-zone path of
PaimonWriteBinding, with its check for a session time inside a DST gap,
can no longer run. That check existed because the BE turned a DATETIMEV2
row value into an instant with cctz while the FE used java.time; a
TIMESTAMPTZ row value and the static value now come from the same FE cast.
Remove the path and the session zone it needed, and keep the rejection of
an instant whose local time the FE JVM zone repeats.
PaimonConnectorTransactionTest, added by #68858 after this change was
written, builds the write binding through the new create signature.
### Release note
None
### Check List (For Author)
- Test: Unit Test
- PaimonWriteBindingTest: the LTZ zone move, the overlap rejection and
the round trip through Paimon's parser, all for TIMESTAMPTZ values.
- The Paimon connector (701) and fe-connector-spi (147) tests, and the
fe-core binding, BindSink and insert command tests (52) pass.
- Behavior changed: No (the removed path had become unreachable)
- Does this need documentation: No
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonConnectorMetadata.java
Copy file name to clipboardExpand all lines: fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonWriteBinding.java
Copy file name to clipboardExpand all lines: fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonWritePlanProvider.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,7 @@ public ConnectorSinkPlan planWrite(ConnectorSession session, ConnectorWriteHandl
Copy file name to clipboardExpand all lines: fe/fe-connector/fe-connector-paimon/src/test/java/org/apache/doris/connector/paimon/PaimonBackendBoundTableTest.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ public void writeBindingKeepsCatalogOnFeButRemovesItFromBePayload(@TempDir Path
Copy file name to clipboardExpand all lines: fe/fe-connector/fe-connector-paimon/src/test/java/org/apache/doris/connector/paimon/PaimonConnectorTransactionTest.java
0 commit comments