This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-testing.git
The following commit(s) were added to refs/heads/master by this push:
new 0b1aad0 Add new Avro files for decimal data types (#112)
0b1aad0 is described below
commit 0b1aad061a6608cf98a54b3c2e4c199f1974886e
Author: Connor Sanders <[email protected]>
AuthorDate: Wed Sep 17 12:51:34 2025 -0500
Add new Avro files for decimal data types (#112)
This adds new fixed256_decimal.avro,
fixed_length_decimal_legacy_32.avro, int128_decimal.avro,
int256_decimal.avro files which will be used to test `arrow-avro`.
Here's the python script used to generate the new Avro file:
https://gist.github.com/3890349bdb33082a3e8fdcae3257eef7.git
Part of https://github.com/apache/arrow-rs/issues/4886
Co-authored-by: Andrew Lamb <[email protected]>
---
data/avro/README.md | 20 ++++++++++++--------
data/avro/fixed256_decimal.avro | Bin 0 -> 1043 bytes
data/avro/fixed_length_decimal_legacy_32.avro | Bin 0 -> 378 bytes
data/avro/int128_decimal.avro | Bin 0 -> 306 bytes
data/avro/int256_decimal.avro | Bin 0 -> 380 bytes
5 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/data/avro/README.md b/data/avro/README.md
index 9bd4a16..b5b2468 100644
--- a/data/avro/README.md
+++ b/data/avro/README.md
@@ -38,11 +38,15 @@ for (fileStatus <- status) {
Additional notes:
-| File | Description
|
-|:--------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| alltypes_nulls_plain.avro | Contains a single row with null values for each
scalar data type, i.e,
`{"string_col":null,"int_col":null,"bool_col":null,"bigint_col":null,"float_col":null,"double_col":null,"bytes_col":null}`.
Generated from
https://gist.github.com/nenorbot/5a92e24f8f3615488f75e2a18a105c76 |
-| nested_records.avro | Contains two rows of nested record types.
Generated from
https://github.com/sarutak/avro-data-generator/blob/master/src/bin/nested-records.rs
|
-| simple_enum.avro | Contains four rows of enum types. Generated from
https://github.com/sarutak/avro-data-generator/blob/master/src/bin/simple-enum.rs
|
-| simple_fixed | Contains two rows of fixed types. Generated from
https://github.com/sarutak/avro-data-generator/blob/master/src/bin/simple-fixed.rs
|
-| zero_byte.avro | Contains two rows of zero bytes followed by a
non-zero byte row. Generated from
https://gist.github.com/jecsand838/e57647d0d12853f3cf07c350a6a40395
|
-| duration_uuid.avro | Contains four rows of uuid and duration logic
types. Generated from
https://gist.github.com/jecsand838/cbdaaf581af78f357778bf87d2f3cf15
|
\ No newline at end of file
+| File | Description
|
+|:------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| alltypes_nulls_plain.avro | Contains a single row with null values
for each scalar data type, i.e,
`{"string_col":null,"int_col":null,"bool_col":null,"bigint_col":null,"float_col":null,"double_col":null,"bytes_col":null}`.
Generated from
https://gist.github.com/nenorbot/5a92e24f8f3615488f75e2a18a105c76 |
+| nested_records.avro | Contains two rows of nested record
types. Generated from
https://github.com/sarutak/avro-data-generator/blob/master/src/bin/nested-records.rs
|
+| simple_enum.avro | Contains four rows of enum types.
Generated from
https://github.com/sarutak/avro-data-generator/blob/master/src/bin/simple-enum.rs
|
+| simple_fixed | Contains two rows of fixed types.
Generated from
https://github.com/sarutak/avro-data-generator/blob/master/src/bin/simple-fixed.rs
|
+| zero_byte.avro | Contains two rows of zero bytes
followed by a non-zero byte row. Generated from
https://gist.github.com/jecsand838/e57647d0d12853f3cf07c350a6a40395
|
+| duration_uuid.avro | Contains four rows of uuid and
duration logic types. Generated from
https://gist.github.com/jecsand838/cbdaaf581af78f357778bf87d2f3cf15
|
+| fixed256_decimal.avro | Generated from
https://gist.github.com/jecsand838/3890349bdb33082a3e8fdcae3257eef7
|
+| fixed_length_decimal_legacy_32.avro | Generated from
https://gist.github.com/jecsand838/3890349bdb33082a3e8fdcae3257eef7
|
+| int128_decimal.avro | Generated from
https://gist.github.com/jecsand838/3890349bdb33082a3e8fdcae3257eef7
|
+| int256_decimal.avro | Generated from
https://gist.github.com/jecsand838/3890349bdb33082a3e8fdcae3257eef7
diff --git a/data/avro/fixed256_decimal.avro b/data/avro/fixed256_decimal.avro
new file mode 100644
index 0000000..d1fc97d
Binary files /dev/null and b/data/avro/fixed256_decimal.avro differ
diff --git a/data/avro/fixed_length_decimal_legacy_32.avro
b/data/avro/fixed_length_decimal_legacy_32.avro
new file mode 100644
index 0000000..b746df9
Binary files /dev/null and b/data/avro/fixed_length_decimal_legacy_32.avro
differ
diff --git a/data/avro/int128_decimal.avro b/data/avro/int128_decimal.avro
new file mode 100644
index 0000000..bd54d20
Binary files /dev/null and b/data/avro/int128_decimal.avro differ
diff --git a/data/avro/int256_decimal.avro b/data/avro/int256_decimal.avro
new file mode 100644
index 0000000..62ad7ea
Binary files /dev/null and b/data/avro/int256_decimal.avro differ