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
| float | string | There can be differences in precision. For example, the input "1.4E-45" will produce 1.0E-45 instead of 1.4E-45 |
141
+
| double | boolean ||
142
+
| double | byte ||
143
+
| double | short ||
144
+
| double | integer ||
145
+
| double | long ||
146
+
| double | float ||
147
+
| double | string | There can be differences in precision. For example, the input "1.4E-45" will produce 1.0E-45 instead of 1.4E-45 |
148
+
| decimal | boolean ||
149
+
| decimal | byte ||
150
+
| decimal | short ||
151
+
| decimal | integer ||
152
+
| decimal | long ||
153
+
| decimal | float ||
154
+
| decimal | double ||
155
+
| decimal | decimal ||
156
+
| decimal | string | There can be formatting differences in some case due to Spark using scientific notation where Comet does not |
157
+
| string | boolean ||
158
+
| string | byte ||
159
+
| string | short ||
160
+
| string | integer ||
161
+
| string | long ||
162
+
| string | binary ||
163
+
| string | date | Only supports years between 262143 BC and 262142 AD |
164
+
| binary | string ||
165
+
| date | string ||
166
+
| timestamp | long ||
167
+
| timestamp | string ||
168
+
| timestamp | date ||
169
+
168
170
<!--END:COMPAT_CAST_TABLE-->
169
171
170
172
### Incompatible Casts
@@ -174,14 +176,16 @@ The following cast operations are not compatible with Spark for all inputs and a
174
176
<!-- WARNING! DO NOT MANUALLY MODIFY CONTENT BETWEEN THE BEGIN AND END TAGS -->
175
177
176
178
<!--BEGIN:INCOMPAT_CAST_TABLE-->
177
-
| From Type | To Type | Notes |
178
-
|-|-|-|
179
-
| float | decimal | There can be rounding differences |
180
-
| double | decimal | There can be rounding differences |
181
-
| string | float | Does not support inputs ending with 'd' or 'f'. Does not support 'inf'. Does not support ANSI mode. |
182
-
| string | double | Does not support inputs ending with 'd' or 'f'. Does not support 'inf'. Does not support ANSI mode. |
183
-
| string | decimal | Does not support inputs ending with 'd' or 'f'. Does not support 'inf'. Does not support ANSI mode. Returns 0.0 instead of null if input contains no digits |
184
-
| string | timestamp | Not all valid formats are supported |
| float | decimal | There can be rounding differences |
183
+
| double | decimal | There can be rounding differences |
184
+
| string | float | Does not support inputs ending with 'd' or 'f'. Does not support 'inf'. Does not support ANSI mode. |
185
+
| string | double | Does not support inputs ending with 'd' or 'f'. Does not support 'inf'. Does not support ANSI mode. |
186
+
| string | decimal | Does not support inputs ending with 'd' or 'f'. Does not support 'inf'. Does not support ANSI mode. Returns 0.0 instead of null if input contains no digits |
187
+
| string | timestamp | Not all valid formats are supported |
0 commit comments