DongLiang-0
a6b51ec19a
[Feature](avro) Support Apache Avro file format (#19990)
support read avro file by hdfs() or s3() .
```sql
select * from s3(
"uri" = "http://127.0.0.1:9312/test2/person.avro",
"ACCESS_KEY" = "ak",
"SECRET_KEY" = "sk",
"FORMAT" = "avro");
+--------+--------------+-------------+-----------------+
| name | boolean_type | double_type | long_type |
+--------+--------------+-------------+-----------------+
| Alyssa | 1 | 10.0012 | 100000000221133 |
| Ben | 0 | 5555.999 | 4009990000 |
| lisi | 0 | 5992225.999 | 9099933330 |
+--------+--------------+-------------+-----------------+
select * from hdfs(
"uri" = "hdfs://127.0.0.1:9000/input/person2.avro",
"fs.defaultFS" = "hdfs://127.0.0.1:9000",
"hadoop.username" = "doris",
"format" = "avro");
+--------+--------------+-------------+-----------+
| name | boolean_type | double_type | long_type |
+--------+--------------+-------------+-----------+
| Alyssa | 1 | 8888.99999 | 89898989 |
+--------+--------------+-------------+-----------+
```
current avro reader only support common data type, the complex data types will be supported later.
2023-06-28 21:15:35 +08:00
..
2023-06-26 16:39:45 +08:00
2023-06-16 13:11:37 +08:00
2023-06-21 20:14:06 +08:00
2023-06-28 16:49:45 +08:00
2023-06-14 18:38:35 +08:00
2023-06-21 11:27:53 +08:00
2023-05-08 19:51:06 +08:00
2023-05-08 19:51:06 +08:00
2023-05-08 10:42:06 +08:00
2023-06-05 10:48:07 +08:00
2023-06-27 17:04:44 +08:00
2023-06-27 20:01:20 +08:00
2023-06-28 15:53:40 +08:00
2023-05-19 18:50:47 +08:00
2023-06-25 14:43:35 +08:00
2023-06-28 16:49:45 +08:00
2023-06-28 21:15:35 +08:00
2023-05-08 19:51:06 +08:00
2023-04-19 23:11:48 +08:00
2023-06-28 16:49:45 +08:00
2023-06-28 21:15:35 +08:00