Propagate Java stack traces from JVM upcalls into DataFusionError
還沒有人認領這個 Issue。
評估
研究方向
首先從純量 UDF 和 DataFusionError::Execution 處理著手,追蹤透過 org.apache.datafusion.internal.JniBridge 的 Java 實作 upcall。識別每一條會捕捉 Throwable 的 JVM-to-native 路徑,以及 SessionContext 設定如何到達這些路徑。完成的標準是,所有目前和未來的 upcall 都使用可設定的訊息、完整 stack trace 或無 trace 表示,並以 full 為預設值。
由索引模型根據 Issue 內容生成。
描述
Follow-up from PR #46 review (thread).
Problem
When a Java-implemented upcall throws (currently: scalar UDFs via JniBridge, but the same will apply to any future upcall — table providers, aggregate UDFs, etc.), the native side surfaces only the exception class name and getMessage() via DataFusionError::Execution. The Java stack trace is discarded, which makes debugging much harder than necessary.
Proposal
Capture the throwable's stack trace on the JVM side and include it in the error string returned to native code. Make verbosity configurable per SessionContext so production callers can opt out — e.g. an enum like message | full | none, default full.
Scope
Should cover all JVM→native upcall paths, not just scalar UDFs. A shared helper in org.apache.datafusion.internal.JniBridge (or a new JniErrors utility) that converts a Throwable to the configured representation, used wherever upcalls catch exceptions.
References
- pgwhalen's session-configurable approach in his community binding: https://github.com/pgwhalen/datafusion-java/blob/1c20733aa8b008315af6092a912b58ef3df6a482/datafusion-ffi-java/src/main/java/org/apache/arrow/datafusion/config/ConfigOptions.java#L50-L54
- 主要語言
- Java
- 星號
- 32
- 分支
- 12
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/datafusion-java 的其他 Issue
-
難度 5/5 一週以上 新手友好度 35/100
apache/datafusion-java#116 ·
-
難度 5/5 一週以上 新手友好度 25/100
apache/datafusion-java#112 ·
-
enhancement
難度 5/5 一週以上 新手友好度 42/100
apache/datafusion-java#96 ·
-
enhancement
難度 5/5 一週以上 新手友好度 38/100
apache/datafusion-java#95 ·
-
enhancement
難度 4/5 3-5 天 新手友好度 35/100
apache/datafusion-java#86 · 3 則留言 ·
查看 apache/datafusion-java 的全部 Issue
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
apache/flink-agents#1152 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 70/100
jenkinsci/blueocean-plugin#5417 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
objectionary/eo-graphs#75 ·