Convert Spark Dataframe to Dataset with MapStruct
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- java, spark
研究方向
首先檢視 mapstruct-examples 儲存庫和連結的 Stack Overflow 問題,以了解所要求的 Spark DataFrame 到 Dataset 的轉換。找出適合放置 Spark 和 Java 範例的位置,接著判斷 MapStruct 是否能夠處理不同的資料庫欄位名稱和 POJO 欄位型別。有一個涵蓋該轉換、具備文件且可運作的範例時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
When using Apache Spark with Java there is a pretty common use case of converting Spark's Dataframes to POJO-based Datasets. The thing is that many times your Dataframe is imported from a database in which the column namings and types are different from your POJO.
Example for this can be found on the following Stackoverflow question (which has been solved programmatically with a map and rename functions). I was wondering if that example could be solved with MapStruct (and maybe would be added to this examples repo).
- 主要語言
- Java
- 星號
- 1.4k
- 分支
- 504
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
mapstruct/mapstruct-examples 的其他 Issue
-
Java 21 support 未關閉
難度 4/5 3-5 天 新手友好度 35/100
mapstruct/mapstruct-examples#153 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
mapstruct/mapstruct-examples#149 · 1 則留言 ·
-
mapstruct-protobuf3 use lombok:UnsupportedOperationException(Collections$UnmodifiableCollection) 未關閉
難度 2/5 1-3 小時 新手友好度 45/100
mapstruct/mapstruct-examples#142 ·
-
難度 4/5 3-5 天 新手友好度 15/100
mapstruct/mapstruct-examples#138 ·
-
難度 4/5 3-5 天 新手友好度 25/100
mapstruct/mapstruct-examples#127 ·
查看 mapstruct/mapstruct-examples 的全部 Issue
相似的 Issue
-
area-deployment area-integrations triage:bot-seen
難度 2/5 半天 新手友好度 86/100
-
難度 2/5 1-3 小時 新手友好度 75/100
apache/flink-agents#1156 ·
-
area/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
難度 2/5 1-3 小時 新手友好度 84/100
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 1/5 1 小時以內 新手友好度 85/100