Commit efb3597
gepa
Bind Short/BigDecimal values in Java and Spark table sinks
SqlTypeUtils now maps Short->SMALLINT and BigDecimal->NUMERIC for the generated
DDL, but the sinks still bound those values via the String fallback. Complete the
write path:
- JavaTableSink: bind via setShort / setBigDecimal
- SparkTableSink: map Short->ShortType and BigDecimal->DecimalType(38,18) so the
Spark DataFrame writes SMALLINT / NUMERIC columns instead of text1 parent 27b935b commit efb3597
2 files changed
Lines changed: 8 additions & 0 deletions
File tree
- wayang-platforms
- wayang-java/src/main/java/org/apache/wayang/java/operators
- wayang-spark/src/main/java/org/apache/wayang/spark/operators
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
| |||
0 commit comments