From 4f5da947f64fe0974f7ef50a5eef3bc43eb75894 Mon Sep 17 00:00:00 2001 From: Connor Sanders Date: Sun, 31 Aug 2025 18:32:05 -0500 Subject: [PATCH] Add new Avro files for decimal data types. --- data/avro/README.md | 16 ++++++++++------ 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, 10 insertions(+), 6 deletions(-) create mode 100644 data/avro/fixed256_decimal.avro create mode 100644 data/avro/fixed_length_decimal_legacy_32.avro create mode 100644 data/avro/int128_decimal.avro create mode 100644 data/avro/int256_decimal.avro diff --git a/data/avro/README.md b/data/avro/README.md index c0479a9..cd9c6da 100644 --- a/data/avro/README.md +++ b/data/avro/README.md @@ -38,9 +38,13 @@ 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 | \ 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 | +| 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 0000000000000000000000000000000000000000..d1fc97dd8c83442cdb51664cf90373d8a82b5bfb GIT binary patch literal 1043 zcmeZI%3@>@Nh~YM*GtY%NloU+E6vFf1M`cMGg5OCXE0YQl~fj_Dp@Hg6{RNU7o{la zC@AG6=7L51^HQDjb6irBGjkJjj7-hkGAmNS3eqxDb5e?dnxd=WipvsnN>f3)q2?hB zPJ?NKnTy55;>;?LmBvOu19I}yGm{f@LZI#fx*KFa$mjx~8#9YD^Yeg8&CP%U#Xxl+ zeTD|LwXwAf&KCb>?{$)WQ1;@@6a%LKMuP?(2Hb!tg!>6@Sq27{72+rG$+P`YUV~4b zGeCa=K6&mX)+PAld4IS^;FA~d3AVu}FSHPhR>% z-v)g0axSx`;FDLFv8)20ywaOZG5F+F9riiklUJW|N(G<1=8J0__~dnL9=^dRuQ%cC h1$^=bPkwH}CvR-YIs>1)X|G@nK6&$pvI!Vj0sz8vf~Wuh literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..b746df9619b5c784c8bc4ef743af77111e051bb5 GIT binary patch literal 378 zcmeZI%3@>@Nh~YM*GtY%NloU+E6vFf1M`cMGg5OCmoZl>l~fj_Dp@Hg6{RNU7o{la zC@AG6=7L51^HQDjb6irBGjkJjjE&qfD^gQ@QqvQYD?zH#GE;L>ih(+#tKmAz5_3vZ zL6T5I5vHesG$R|1%h=+~Dv;$SKtpo!(=(G3b3&jF1bP7E5Rf4SK*welXXfVtRayf1 z#Xw~sT}HLFv9%1Z^4w=F2`SK6n_bp-CUS9*!2w1F28I+MKEc4ir~||kfcOgo15*SL z?_pqIRsiA_Ab!EXz~TeM8yFZ^MS!>hi0?2kusHzn5(Wl#4j|3};tLE6940_K1Bm}H KFmNWITL}OFr)!h| literal 0 HcmV?d00001 diff --git a/data/avro/int128_decimal.avro b/data/avro/int128_decimal.avro new file mode 100644 index 0000000000000000000000000000000000000000..bd54d20ba48744341f9436677310f61b84907540 GIT binary patch literal 306 zcmeZI%3@>@Nh~YM*GtY%NloU+E6vFf1M`cMGg5OCPcT(0l~fj_Dp@Hg6{RNU7o{la zC@AG6=7L51^HQDjb6irBGjkJj42>+DDoav}K?>3`Q*%;^ftsSL;fl)=b4pV|l2G#y z1}DL^<>aSlCMV{EKrIA12xKrwPXW;K%;L=aJfNAz7C?bwpgNEnjB0CRYZ*=ns;(D^ ztW3T8>0rg4yN62+`WTr~SQt*QFzT={PGDjD!on26!nB8lS%HPQg@ySA3yTj6%LW!! p5f;`87S=l~Yz{1JOIX-BSlDw|*e|efn6PlnVBz?~!kK_>G5`?`UcmqW literal 0 HcmV?d00001 diff --git a/data/avro/int256_decimal.avro b/data/avro/int256_decimal.avro new file mode 100644 index 0000000000000000000000000000000000000000..62ad7ea4df08df2fdc8896321908f6006294315a GIT binary patch literal 380 zcmeZI%3@>@Nh~YM*GtY%NloU+E6vFf1M`cMGg5OCPcc<1l~fj_Dp@Hg6{RNU7o{la zC@AG6=7L51^HQDjb6irBGjkJjj7-g(Doav}K?>3`Q*%;^ftsSL;fl)=b4pV|l2G#y z1}DL^<>aSlCMV{EKrIA12xKrwPXW;K%;L=aJfNB8Wq6Jr(@TA13>GkPF@Qkb!(wp4h&rCQ%