Flight SQL JDBC: Fix timezone/timestamp handling
維護者通常 3 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
首先追蹤 Flight SQL JDBC driver 對 java.sql.Timestamp、LocalDateTime、時區和 Calendar 的處理方式,並將其行為與 issue 中描述的 PostgreSQL JDBC 預期進行比較。完成的標準是:無時區時間戳保留要求的牆上時鐘值,帶時區的時間戳保留 UTC 時刻,包括跨越 DST 轉換時的行為。
由索引模型根據 Issue 內容生成。
描述
Describe the enhancement requested
I believe the JDBC driver is handling timezones/timestamps/java.sql.Timestamp entirely incorrectly.
-
Timestamps are round-tripped through LocalDateTime always. I believe this is wrong for timestamps with timezones: we should not round trip through a wall clock time since the same wall clock time may correspond to multiple different instants (during a DST transition)
-
From experimenting with the PostgreSQL JDBC driver, it appears that when requesting a java.sql.Timestamp, the expected behavior is:
- Naive timestamp: return a Timestamp that appears to have the right wall clock time in the given Calendar, or the system time zone if no calendar is supplied. (In other words, use Timestamp as a janky LocalDateTime.)
- Zoned timestamp: return a Timestamp whose value is the timestamp in UTC. (In other words, use Timestamp as an Instant.)
It appears our driver does not do this properly.
- 主要語言
- Java
- 星號
- 97
- 分支
- 158
- 平均合併
- 9 天 4 小時
- 30 天內合併 PR
- 13
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/arrow-java 的其他 Issue
-
DictionaryEncoder.decode accepts out-of-range dictionary indices可能已有人在做 @Arawoof06 於 47 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
apache/arrow-java#1261 ·
維護者通常 3 天內回覆
-
ArrowFlightJdbcArray.getArray(index, count) can read past the end of the array slice可能已有人在做 @Arawoof06 於 76 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
apache/arrow-java#1236 ·
維護者通常 3 天內回覆
-
[Java][JDBC] ClobConsumer writes past VarCharVector data buffer for large CLOBs可能已有人在做 @Arawoof06 於 81 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
apache/arrow-java#1230 ·
維護者通常 3 天內回覆
-
Byte-array elements leak in `FromSchemaByteArray()`可能已有人在做 @PG1204 於 72 天前認領。 未關閉Type: bug
難度 2/5 1-3 小時 新手友好度 85/100
apache/arrow-java#1205 ·
維護者通常 3 天內回覆
-
[Java][IPC] AbstractCompressionCodec.compress() writes prefix=0 for empty buffers, incompatible with C++/Python readers可能已有人在做 @PG1204 於 72 天前認領。 未關閉Type: bug
難度 2/5 1-3 小時 新手友好度 68/100
apache/arrow-java#1196 · 1 則留言 ·
維護者通常 3 天內回覆
查看 apache/arrow-java 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
objectionary/hone-maven-plugin#1295 ·
維護者通常 1 天內回覆
-
Clarify Javadoc for Logger methods taking Object... arguments with regards to Throwable detection未關閉
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 1/5 1-3 小時 新手友好度 88/100
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
[Bug] The shared instance selector's placeholder and no-match text ignore the display language可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 90/100
apache/rocketmq-dashboard#5561 ·
維護者通常 3 天內回覆