Commit 6402200
Avro Table Provider (#910)
* Add avro as a datasource, file and table provider
* wip
* Added support composite identifiers for struct type.
* Fixed build.
* cheat and add unions to valid composite column types
* Implement the AvroArrayReader
* Add binary types
* Enable Avro as a FileType
* Enable registering an avro table in the sql parsing
* Change package name for datafusion/avro
* Implement Avro datasource tests and fix avro_rs::Value resolution to Arrow types
* Test for AvroExec::try_from_path
* external table avro test
* Basic schema conversion tests
* Complete test for avro_to_arrow_reader on alltypes_dictionnary
* fix_stable: .rewind is 'unstable'
* Fix license files and remove the unused avro-converter crate
* fix example test in avro_to_arrow
* add avro_sql test to default workflow
* Adress clippies
* Enable avro as a valid datasource for client execution
* Add avro to available logical plan nodes
* Add ToTimestampMillis as a scalar function in protos
* Allow Avro in PhysicalPlan nodes
* Remove remaining confusing references to 'json' in avro mod
* rename 'parquet' words in avro test and examples
* Handle Union of nested lists in arrow reader
* test timestamp arrays
* remove debug statement
* Make avro optional
* Remove debug statement
* Remove GetField usage (see #628)
* Fix docstring in parser tests
* Test batch output rather than just rows individually
* Remove 'csv' from error strings in physical_plan::avro
* Avro sample sql and explain queries tests in sql.rs
* Activate avro feature for cargo tests in github workflow
* Add a test for avro registering multiple files in a single table
* Switch to Result instead of Option for resolve_string
* Address missing clippy warning should_implement_trait in arrow_to_avro/reader
* Add fmt display implementation for AvroExec
* ci: fix cargo sql run example, use datafusion/avro feature instead of 'avro'
* license: missing license file for avro_to_arrow/schema.rs
* only run avro datasource tests if features have 'avro'
* refactor: rename infer_avro_schema_from_reader to read_avro_schema_from_reader
* Pass None as props to avro schema schema_to_field_with_props until further notice
* Change schema inferance to FixedSizeBinary(16) for Uuid
* schema: prefix metadata coming from avro with 'avro'
* make num traits optional and part of the avro feature flag
* Fix avro schema tests regarding external props
* split avro physical plan test feature wise and add a non-implemented test
* submodule: switch back to apache/arrow-testing
* fix_test: columns are now prefixed in the plan
* avro_test: fix clippy warning cmp-owned
* avro: move statistics to the physical plan
* Increase min stack size for cargo tests
Co-authored-by: Jorge C. Leitao <jorgecarleitao@gmail.com>1 parent 195b699 commit 6402200
33 files changed
Lines changed: 3258 additions & 38 deletions
File tree
- .github/workflows
- ballista/rust
- client/src
- core
- proto
- src/serde
- logical_plan
- physical_plan
- datafusion-examples
- examples
- datafusion
- src
- avro_to_arrow
- datasource
- execution
- logical_plan
- physical_plan
- sql
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
| 108 | + | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
128 | 153 | | |
129 | 154 | | |
130 | 155 | | |
| |||
193 | 218 | | |
194 | 219 | | |
195 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
196 | 232 | | |
197 | 233 | | |
198 | 234 | | |
| |||
240 | 276 | | |
241 | 277 | | |
242 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
243 | 283 | | |
244 | 284 | | |
245 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
256 | 258 | | |
257 | 259 | | |
258 | 260 | | |
| |||
296 | 298 | | |
297 | 299 | | |
298 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
299 | 310 | | |
300 | 311 | | |
301 | 312 | | |
| |||
340 | 351 | | |
341 | 352 | | |
342 | 353 | | |
| 354 | + | |
343 | 355 | | |
344 | 356 | | |
345 | 357 | | |
| |||
456 | 468 | | |
457 | 469 | | |
458 | 470 | | |
| 471 | + | |
459 | 472 | | |
460 | 473 | | |
461 | 474 | | |
| |||
609 | 622 | | |
610 | 623 | | |
611 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
612 | 636 | | |
613 | 637 | | |
614 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
174 | 201 | | |
175 | 202 | | |
176 | 203 | | |
| |||
1193 | 1220 | | |
1194 | 1221 | | |
1195 | 1222 | | |
| 1223 | + | |
1196 | 1224 | | |
1197 | 1225 | | |
1198 | 1226 | | |
| |||
1209 | 1237 | | |
1210 | 1238 | | |
1211 | 1239 | | |
| 1240 | + | |
1212 | 1241 | | |
1213 | 1242 | | |
1214 | 1243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
648 | 652 | | |
649 | 653 | | |
650 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
796 | 810 | | |
797 | 811 | | |
798 | 812 | | |
| |||
974 | 988 | | |
975 | 989 | | |
976 | 990 | | |
| 991 | + | |
977 | 992 | | |
978 | 993 | | |
979 | 994 | | |
| |||
1098 | 1113 | | |
1099 | 1114 | | |
1100 | 1115 | | |
1101 | | - | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1102 | 1123 | | |
1103 | 1124 | | |
1104 | 1125 | | |
| |||
1111 | 1132 | | |
1112 | 1133 | | |
1113 | 1134 | | |
1114 | | - | |
| 1135 | + | |
1115 | 1136 | | |
1116 | 1137 | | |
1117 | 1138 | | |
| |||
1284 | 1305 | | |
1285 | 1306 | | |
1286 | 1307 | | |
1287 | | - | |
| 1308 | + | |
1288 | 1309 | | |
1289 | 1310 | | |
1290 | 1311 | | |
| |||
1473 | 1494 | | |
1474 | 1495 | | |
1475 | 1496 | | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1476 | 1500 | | |
1477 | 1501 | | |
1478 | 1502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
156 | 172 | | |
157 | 173 | | |
158 | 174 | | |
| |||
544 | 560 | | |
545 | 561 | | |
546 | 562 | | |
| 563 | + | |
547 | 564 | | |
548 | 565 | | |
549 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
288 | 311 | | |
289 | 312 | | |
290 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
0 commit comments