Skip to content

Commit bd83978

Browse files
committed
support_ansi_avg
1 parent 6b3ba80 commit bd83978

File tree

7 files changed

+419
-557
lines changed

7 files changed

+419
-557
lines changed

docs/source/user-guide/latest/compatibility.md

Lines changed: 84 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -89,84 +89,82 @@ 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+
| From Type | To Type | Notes |
93+
|-|-|-|
94+
| boolean | byte | |
95+
| boolean | short | |
96+
| boolean | integer | |
97+
| boolean | long | |
98+
| boolean | float | |
99+
| boolean | double | |
100+
| boolean | string | |
101+
| byte | boolean | |
102+
| byte | short | |
103+
| byte | integer | |
104+
| byte | long | |
105+
| byte | float | |
106+
| byte | double | |
107+
| byte | decimal | |
108+
| byte | string | |
109+
| short | boolean | |
110+
| short | byte | |
111+
| short | integer | |
112+
| short | long | |
113+
| short | float | |
114+
| short | double | |
115+
| short | decimal | |
116+
| short | string | |
117+
| integer | boolean | |
118+
| integer | byte | |
119+
| integer | short | |
120+
| integer | long | |
121+
| integer | float | |
122+
| integer | double | |
123+
| integer | decimal | |
124+
| integer | string | |
125+
| long | boolean | |
126+
| long | byte | |
127+
| long | short | |
128+
| long | integer | |
129+
| long | float | |
130+
| long | double | |
131+
| long | decimal | |
132+
| long | string | |
133+
| float | boolean | |
134+
| float | byte | |
135+
| float | short | |
136+
| float | integer | |
137+
| float | long | |
138+
| float | double | |
139+
| 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 |
140+
| double | boolean | |
141+
| double | byte | |
142+
| double | short | |
143+
| double | integer | |
144+
| double | long | |
145+
| double | float | |
146+
| 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 |
147+
| decimal | boolean | |
148+
| decimal | byte | |
149+
| decimal | short | |
150+
| decimal | integer | |
151+
| decimal | long | |
152+
| decimal | float | |
153+
| decimal | double | |
154+
| decimal | decimal | |
155+
| decimal | string | There can be formatting differences in some case due to Spark using scientific notation where Comet does not |
156+
| string | boolean | |
157+
| string | byte | |
158+
| string | short | |
159+
| string | integer | |
160+
| string | long | |
161+
| string | binary | |
162+
| string | date | Only supports years between 262143 BC and 262142 AD |
163+
| binary | string | |
164+
| date | string | |
165+
| timestamp | long | |
166+
| timestamp | string | |
167+
| timestamp | date | |
170168
<!--END:COMPAT_CAST_TABLE-->
171169

172170
### Incompatible Casts
@@ -176,16 +174,14 @@ The following cast operations are not compatible with Spark for all inputs and a
176174
<!-- WARNING! DO NOT MANUALLY MODIFY CONTENT BETWEEN THE BEGIN AND END TAGS -->
177175

178176
<!--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-
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 |
189185
<!--END:INCOMPAT_CAST_TABLE-->
190186

191187
### Unsupported Casts

0 commit comments

Comments
 (0)