@@ -89,84 +89,84 @@ The following cast operations are generally compatible with Spark except for the
8989<!-- WARNING! DO NOT MANUALLY MODIFY CONTENT BETWEEN THE BEGIN AND END TAGS -->
9090
9191<!-- BEGIN:COMPAT_CAST_TABLE-->
92-
93- | From Type | To Type | Notes |
94- | --------- | ------- | --------------------------------------------------------------------------------------------------------------- |
95- | boolean | byte | |
96- | boolean | short | |
97- | boolean | integer | |
98- | boolean | long | |
99- | boolean | float | |
100- | boolean | double | |
101- | boolean | string | |
102- | byte | boolean | |
103- | byte | short | |
104- | byte | integer | |
105- | byte | long | |
106- | byte | float | |
107- | byte | double | |
108- | byte | decimal | |
109- | byte | string | |
110- | short | boolean | |
111- | short | byte | |
112- | short | integer | |
113- | short | long | |
114- | short | float | |
115- | short | double | |
116- | short | decimal | |
117- | short | string | |
118- | integer | boolean | |
119- | integer | byte | |
120- | integer | short | |
121- | integer | long | |
122- | integer | float | |
123- | integer | double | |
124- | integer | decimal | |
125- | integer | string | |
126- | long | boolean | |
127- | long | byte | |
128- | long | short | |
129- | long | integer | |
130- | long | float | |
131- | long | double | |
132- | long | decimal | |
133- | long | string | |
134- | float | boolean | |
135- | float | byte | |
136- | float | short | |
137- | float | integer | |
138- | float | long | |
139- | float | double | |
140- | 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-
92+ <!-- prettier-ignore-start -->
93+ | From Type | To Type | Notes |
94+ | - | - | - |
95+ | boolean | byte | |
96+ | boolean | short | |
97+ | boolean | integer | |
98+ | boolean | long | |
99+ | boolean | float | |
100+ | boolean | double | |
101+ | boolean | string | |
102+ | byte | boolean | |
103+ | byte | short | |
104+ | byte | integer | |
105+ | byte | long | |
106+ | byte | float | |
107+ | byte | double | |
108+ | byte | decimal | |
109+ | byte | string | |
110+ | short | boolean | |
111+ | short | byte | |
112+ | short | integer | |
113+ | short | long | |
114+ | short | float | |
115+ | short | double | |
116+ | short | decimal | |
117+ | short | string | |
118+ | integer | boolean | |
119+ | integer | byte | |
120+ | integer | short | |
121+ | integer | long | |
122+ | integer | float | |
123+ | integer | double | |
124+ | integer | decimal | |
125+ | integer | string | |
126+ | long | boolean | |
127+ | long | byte | |
128+ | long | short | |
129+ | long | integer | |
130+ | long | float | |
131+ | long | double | |
132+ | long | decimal | |
133+ | long | string | |
134+ | float | boolean | |
135+ | float | byte | |
136+ | float | short | |
137+ | float | integer | |
138+ | float | long | |
139+ | float | double | |
140+ | 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+ <!-- prettier-ignore-end -->
170170<!-- END:COMPAT_CAST_TABLE-->
171171
172172### Incompatible Casts
@@ -176,16 +176,16 @@ The following cast operations are not compatible with Spark for all inputs and a
176176<!-- WARNING! DO NOT MANUALLY MODIFY CONTENT BETWEEN THE BEGIN AND END TAGS -->
177177
178178<!-- BEGIN:INCOMPAT_CAST_TABLE-->
179-
180- | From Type | To Type | Notes |
181- | --------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
182- | 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 |
188-
179+ <!-- prettier-ignore-start -->
180+ | From Type | To Type | Notes |
181+ | - | - | - |
182+ | 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 |
188+ <!-- prettier-ignore-end -->
189189<!-- END:INCOMPAT_CAST_TABLE-->
190190
191191### Unsupported Casts
0 commit comments