From d61cec5bf42fcfeb248bbf782330f692ff0548eb Mon Sep 17 00:00:00 2001 From: Arthur Passos Date: Tue, 9 Aug 2022 16:13:09 -0300 Subject: [PATCH] Add one more arrowcolumn dict test --- .../0_stateless/02381_arrow_dict_to_lc.sh | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 tests/queries/0_stateless/02381_arrow_dict_to_lc.sh diff --git a/tests/queries/0_stateless/02381_arrow_dict_to_lc.sh b/tests/queries/0_stateless/02381_arrow_dict_to_lc.sh new file mode 100755 index 00000000000..9fb0272eeb0 --- /dev/null +++ b/tests/queries/0_stateless/02381_arrow_dict_to_lc.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +# Tags: no-fasttest +CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +# shellcheck source=../shell_config.sh +. "$CURDIR"/../shell_config.sh + +# ## reading ArrowStream file from python +# import pyarrow as pa +# stream = pa.ipc.open_stream("test.arrows") +# x = stream.read_all() +# print(x) + +## writing ArrowStream file from python +# import pyarrow as pa +#data = [ +# pa.array([1, 2, 3, 4, 5]), +# pa.array(["onee", "twoo", "three", "four", "five"]).dictionary_encode(), +# pa.array([1, 2, 3, 4, 5]).dictionary_encode(), +# pa.array([True, False, True, True, True]) +#] +# batch = pa.record_batch(data, names=['id', 'lc_nullable', 'lc_int_nullable', 'bool_nullable']) +# writer = pa.ipc.new_stream("test4.arrows", batch.schema) +# writer.write_batch(batch) +# writer.close() + +# cat data.arrow | gzip | base64 + +cat <