repo
stringclasses
1 value
pull_number
int64
443
6.37k
instance_id
stringlengths
20
21
issue_numbers
listlengths
1
1
base_commit
stringlengths
40
40
patch
stringlengths
602
65k
test_patch
stringlengths
543
17.6k
problem_statement
stringlengths
495
4.62k
hints_text
stringlengths
0
5.6k
created_at
stringlengths
20
20
version
stringlengths
3
4
environment_setup_commit
stringlengths
40
40
FAIL_TO_PASS
listlengths
1
5
PASS_TO_PASS
listlengths
2
67
FAIL_TO_FAIL
listlengths
0
0
PASS_TO_FAIL
listlengths
0
1
apache/arrow-rs
4,351
apache__arrow-rs-4351
[ "4350" ]
008cf9c27424d581a67ba97f338a22b6eace9cc1
diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml index 28bf29f7f1e0..4002a1865fa6 100644 --- a/object_store/Cargo.toml +++ b/object_store/Cargo.toml @@ -75,3 +75,7 @@ tempfile = "3.1.0" futures-test = "0.3" rand = "0.8" hyper = { version = "0.14.24", features = ["server"] } + +[[test]] +name = "get_ran...
diff --git a/object_store/tests/get_range_file.rs b/object_store/tests/get_range_file.rs new file mode 100644 index 000000000000..f926e3b07f2a --- /dev/null +++ b/object_store/tests/get_range_file.rs @@ -0,0 +1,116 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreeme...
Default ObjectStore::get_range Doesn't Apply Range to GetResult::File **Describe the bug** <!-- A clear and concise description of what the bug is. --> The default implementation of `ObjectStore::get_range` added in #4212 incorrectly handles if `GetResult::File` is returned, instead returning the entire byte rang...
2023-06-02T16:36:39Z
40.0
008cf9c27424d581a67ba97f338a22b6eace9cc1
[ "test_get_range" ]
[ "src/lib.rs - (line 154)", "src/lib.rs - (line 53)", "src/lib.rs - (line 178)", "src/lib.rs - (line 106)", "src/limit.rs - limit::LimitStore (line 39)", "src/path/mod.rs - path::Path (line 123)", "src/path/mod.rs - path::Path (line 102)", "src/path/mod.rs - path::Path (line 112)" ]
[]
[]
apache/arrow-rs
4,343
apache__arrow-rs-4343
[ "4324" ]
795259502d8d19f1e929d8ebf1b2819b6ab145c4
diff --git a/arrow-data/src/transform/mod.rs b/arrow-data/src/transform/mod.rs index c74875072233..f4b2b46d1723 100644 --- a/arrow-data/src/transform/mod.rs +++ b/arrow-data/src/transform/mod.rs @@ -53,7 +53,7 @@ struct _MutableArrayData<'a> { pub null_count: usize, pub len: usize, - pub null_buffer: Mut...
diff --git a/arrow/tests/array_transform.rs b/arrow/tests/array_transform.rs index 40938c80f4c3..ebbadc00aecd 100644 --- a/arrow/tests/array_transform.rs +++ b/arrow/tests/array_transform.rs @@ -922,6 +922,29 @@ fn test_fixed_size_binary_append() { assert_eq!(result, expected); } +#[test] +fn test_extend_nulls(...
concat_batches panics with total_len <= bit_len assertion for records with lists **Describe the bug** `concat`, used by `concat_batches`, does not appear to allocate sufficient `capacities` when constructing the `MutableArrayData`. Concatenating records that contain lists of structs results in the following panic: ``...
Possibly related to https://github.com/apache/arrow-rs/issues/1230. The error would suggest that the validity buffer is not the correct length. I'll take a look in a bit, MutableArrayData is overdue some TLC in this regard (#1225) Are you able to share a reproducer for this? Sure, see https://github.com/ElementalCognit...
2023-06-02T07:51:43Z
40.0
008cf9c27424d581a67ba97f338a22b6eace9cc1
[ "test_extend_nulls_panic - should panic" ]
[ "arrow/src/lib.rs - (line 140)", "arrow/src/lib.rs - (line 121)", "arrow/src/lib.rs - (line 253)", "arrow/src/lib.rs - (line 63)", "arrow/src/lib.rs - (line 227)", "arrow/src/lib.rs - (line 282)", "arrow/src/util/string_writer.rs - util::string_writer (line 25)", "arrow/src/lib.rs - (line 97)", "arr...
[]
[]
apache/arrow-rs
4,327
apache__arrow-rs-4327
[ "3680" ]
30196d89bfab698c50bcde6c304f0599011a1100
diff --git a/parquet/src/column/writer/mod.rs b/parquet/src/column/writer/mod.rs index 310519f4a39c..fc5e29b03256 100644 --- a/parquet/src/column/writer/mod.rs +++ b/parquet/src/column/writer/mod.rs @@ -308,6 +308,17 @@ impl<'a, E: ColumnValueEncoder> GenericColumnWriter<'a, E> { max: Option<&E::T>, d...
diff --git a/parquet/tests/arrow_writer_layout.rs b/parquet/tests/arrow_writer_layout.rs index 142112b7b686..3142c8c52063 100644 --- a/parquet/tests/arrow_writer_layout.rs +++ b/parquet/tests/arrow_writer_layout.rs @@ -19,6 +19,7 @@ use arrow::array::{Int32Array, StringArray}; use arrow::record_batch::RecordBatch; ...
Should Parquet pages begin on the start of a row? **Which part is this question about** Parquet writer <!-- Is it code base, library api, documentation or some other part? --> **Describe your question** In #1777 it was brought up [here](https://github.com/apache/arrow-rs/issues/1777#issuecomment-1147686956) tha...
I'm not sure it is a bug per se, but I definitely think the APIs shouldn't do it unilaterally as they currently do. I would support making `GenericColumnWriter::write_batch_internal` call `write_mini_batch` treating the `WriterProperties::write_batch_size` as being a number of rows, as opposed to levels. Tbh this is...
2023-05-31T19:17:10Z
40.0
008cf9c27424d581a67ba97f338a22b6eace9cc1
[ "test_list" ]
[ "parquet/src/file/mod.rs - file (line 63) - compile", "parquet/src/record/api.rs - record::api::Row::get_column_iter (line 62) - compile", "parquet/src/file/mod.rs - file (line 80) - compile", "parquet/src/file/mod.rs - file (line 29) - compile", "parquet/src/column/mod.rs - column (line 38) - compile", "...
[]
[]
apache/arrow-rs
5,439
apache__arrow-rs-5439
[ "5438" ]
ef5c45cf4186a8124da5a1603ebdbc09ef9928fc
diff --git a/arrow-flight/src/error.rs b/arrow-flight/src/error.rs index e054883e965d..ba979ca9f7a6 100644 --- a/arrow-flight/src/error.rs +++ b/arrow-flight/src/error.rs @@ -49,17 +49,24 @@ impl FlightError { impl std::fmt::Display for FlightError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::R...
diff --git a/arrow-flight/tests/client.rs b/arrow-flight/tests/client.rs index 9e19bce92338..47565334cb63 100644 --- a/arrow-flight/tests/client.rs +++ b/arrow-flight/tests/client.rs @@ -935,7 +935,7 @@ async fn test_cancel_flight_info_error_no_response() { assert_eq!( err.to_string(), - ...
Refine `Display` implementation for `FlightError` **Is your feature request related to a problem or challenge? Please describe what you are trying to do.** There's a `TODO` for a better `std::fmt::Display` implementation on `FlightError`. Currently it forwards to `std::fmt::Debug`, which does not appear to be a good...
2024-02-27T07:27:28Z
50.0
82fc0df73ab97e239ce5c748a05c57ce582f3d5d
[ "test_cancel_flight_info_error_no_response", "test_renew_flight_endpoint_error_no_response", "test_chained_streams_batch_decoder", "test_error", "test_mismatched_record_batch_schema" ]
[ "arrow-flight/src/client.rs - client::FlightClient::cancel_flight_info (line 609) - compile", "arrow-flight/src/client.rs - client::FlightClient::get_schema (line 497) - compile", "arrow-flight/src/client.rs - client::FlightClient::do_action (line 564) - compile", "arrow-flight/src/client.rs - client::FlightC...
[]
[]
apache/arrow-rs
443
apache__arrow-rs-443
[ "349" ]
0c0077697e55eb154dbfcf3127a3f39e63be2df8
diff --git a/parquet/src/data_type.rs b/parquet/src/data_type.rs index aa1def3db977..f97df3cdaf59 100644 --- a/parquet/src/data_type.rs +++ b/parquet/src/data_type.rs @@ -661,8 +661,15 @@ pub(crate) mod private { _: &mut W, bit_writer: &mut BitWriter, ) -> Result<()> { + if...
diff --git a/parquet/tests/boolean_writer.rs b/parquet/tests/boolean_writer.rs new file mode 100644 index 000000000000..b9d757e71a8e --- /dev/null +++ b/parquet/tests/boolean_writer.rs @@ -0,0 +1,100 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the N...
parquet reading hangs when row_group contains more than 2048 rows of data **Describe the bug** Reading an apparently valid parquet file (which can be read by java tools such as parquet-tools) from any rust program will hang. CPU load goes to 100%. Reproduced on both 4.0.0 and 4.1.0. rustc: 1.51.0 **To Reproduce** ...
Thanks for the report @garyanaplan ! yw. Extra Info: It happens with debug or release builds and I reproduced it with 1.51.0 on a linux system. I've also just encountered it. Common element with this reproduction is BOOLEAN field. It worked without BOOLEAN as well. After quick investigation of the looping code, I...
2021-06-10T13:13:10Z
0.3
4c7d4189e72901a78fb4f4250c11421241dd9e13
[ "it_writes_data_without_hanging" ]
[ "parquet/src/compression.rs - compression (line 25) - compile", "parquet/src/file/mod.rs - file (line 29) - compile", "parquet/src/arrow/mod.rs - arrow (line 25) - compile", "parquet/src/file/mod.rs - file (line 64) - compile", "parquet/src/file/mod.rs - file (line 81) - compile", "parquet/src/record/api....
[]
[]
apache/arrow-rs
4,201
apache__arrow-rs-4201
[ "1936" ]
378a9fcc9ee31fff4a9a13f5de5a326dc449541e
diff --git a/arrow-cast/src/cast.rs b/arrow-cast/src/cast.rs index 37fede0a6fe0..2b286bfa9119 100644 --- a/arrow-cast/src/cast.rs +++ b/arrow-cast/src/cast.rs @@ -35,7 +35,7 @@ //! assert_eq!(7.0, c.value(2)); //! ``` -use chrono::{NaiveTime, TimeZone, Timelike, Utc}; +use chrono::{NaiveTime, Offset, TimeZone, Time...
diff --git a/arrow/tests/array_cast.rs b/arrow/tests/array_cast.rs index bf7e7a326efc..43dc6dd0eb0a 100644 --- a/arrow/tests/array_cast.rs +++ b/arrow/tests/array_cast.rs @@ -18,6 +18,7 @@ use arrow_array::builder::{ PrimitiveDictionaryBuilder, StringDictionaryBuilder, UnionBuilder, }; +use arrow_array::cast::As...
Cast Kernel Ignores Timezone **Is your feature request related to a problem or challenge? Please describe what you are trying to do.** The beginnings of timezone support were added in #824, however, this is currently ignored by the cast kernel **Describe the solution you'd like** Timezones should be correctly ...
I'd like to work on this. And I think `fmt` of timestamp array cannot ignore timezone too. Could you assign it to me? @tustvold I would recommend writing up the expected behaviour first, as timezone handling is notoriously messy, and once we have consensus we can move forward with implementing that. FYI @avantgardne...
2023-05-11T11:37:13Z
39.0
378a9fcc9ee31fff4a9a13f5de5a326dc449541e
[ "test_cast_timestamp_with_timezone_daylight_1" ]
[ "arrow/src/lib.rs - (line 121)", "arrow/src/lib.rs - (line 140)", "arrow/src/lib.rs - (line 253)", "arrow/src/lib.rs - (line 282)", "arrow/src/lib.rs - (line 78)", "arrow/src/util/string_writer.rs - util::string_writer (line 25)", "arrow/src/lib.rs - (line 63)", "arrow/src/lib.rs - (line 97)", "arro...
[]
[]
apache/arrow-rs
5,717
apache__arrow-rs-5717
[ "5716" ]
a126d5097b71273428fba68d1c430f3d4beee684
diff --git a/parquet_derive/src/parquet_field.rs b/parquet_derive/src/parquet_field.rs index 9fff76c42d1d..f99ea3e0356c 100644 --- a/parquet_derive/src/parquet_field.rs +++ b/parquet_derive/src/parquet_field.rs @@ -239,7 +239,8 @@ impl Field { /// because this parsing logic is not sophisticated enough for definiti...
diff --git a/parquet_derive_test/src/lib.rs b/parquet_derive_test/src/lib.rs index 3743c6b55c7c..e168ad5b980a 100644 --- a/parquet_derive_test/src/lib.rs +++ b/parquet_derive_test/src/lib.rs @@ -66,6 +66,25 @@ struct APartiallyCompleteRecord { pub byte_vec: Vec<u8>, } +// This struct has OPTIONAL columns +// If...
[parquet_derive] support OPTIONAL (def_level = 1) columns by default ## Problem Description <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] (This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*) --> I'm ...
What happens if you specify the field as `Option` to match the schema? > What happens if you specify the field as `Option` to match the schema? I have tried, it does not work, because: 1. the OPTIONAL, REQUIRED, REPEATED tags are generated automatically in the macro. 2. even I workaround 1 by enforce the field to ...
2024-05-04T11:18:22Z
51.0
30767a687b48d0dbd2e030eef327826c39095123
[ "tests::test_parquet_derive_read_optional_but_valid_column" ]
[ "tests::test_parquet_derive_hello", "tests::test_parquet_derive_read_write_combined" ]
[]
[]
apache/arrow-rs
6,269
apache__arrow-rs-6269
[ "6268" ]
acdd27a66ac7b5e07816dc648db00532110fb89a
diff --git a/parquet_derive/src/lib.rs b/parquet_derive/src/lib.rs index 16b6a6699e2d..9c93e2cca978 100644 --- a/parquet_derive/src/lib.rs +++ b/parquet_derive/src/lib.rs @@ -146,10 +146,10 @@ pub fn parquet_record_writer(input: proc_macro::TokenStream) -> proc_macro::Toke /// Derive flat, simple RecordReader implemen...
diff --git a/parquet_derive_test/src/lib.rs b/parquet_derive_test/src/lib.rs index e7c7896cb7f3..2cd69d03d731 100644 --- a/parquet_derive_test/src/lib.rs +++ b/parquet_derive_test/src/lib.rs @@ -73,9 +73,9 @@ struct APartiallyCompleteRecord { struct APartiallyOptionalRecord { pub bool: bool, pub string: Stri...
parquet_derive: support reading selected columns from parquet file # Feature Description I'm effectively using `parquet_derive` in my project, and I found that there are two inconvenient constraints: 1. The `ParquetRecordReader` enforces the struct to organize fields exactly in the **same order** in the parquet f...
2024-08-18T14:39:49Z
52.2
678517018ddfd21b202a94df13b06dfa1ab8a378
[ "tests::test_parquet_derive_read_pruned_and_shuffled_columns" ]
[ "tests::test_parquet_derive_hello", "tests::test_parquet_derive_read_write_combined", "tests::test_parquet_derive_read_optional_but_valid_column" ]
[]
[]
apache/arrow-rs
2,407
apache__arrow-rs-2407
[ "2406" ]
27f4762c8794ef1c5d042933562185980eb85ae5
diff --git a/parquet/src/arrow/record_reader/mod.rs b/parquet/src/arrow/record_reader/mod.rs index 88d45f3d746a..18b4c9e07026 100644 --- a/parquet/src/arrow/record_reader/mod.rs +++ b/parquet/src/arrow/record_reader/mod.rs @@ -786,4 +786,186 @@ mod tests { assert_eq!(record_reader.num_records(), 8); a...
diff --git a/parquet/src/util/test_common/page_util.rs b/parquet/src/util/test_common/page_util.rs index dffcb2a44e87..243fb6f8b897 100644 --- a/parquet/src/util/test_common/page_util.rs +++ b/parquet/src/util/test_common/page_util.rs @@ -24,6 +24,7 @@ use crate::encodings::levels::LevelEncoder; use crate::errors::Res...
Support `peek_next_page` and `skip_next_page` in `InMemoryPageReader` **Is your feature request related to a problem or challenge? Please describe what you are trying to do.** when i was implementing bench using `skip_records` got ``` Benchmarking arrow_array_reader/Int32Array/binary packed skip, mandatory, no NUL...
2022-08-11T07:39:09Z
20.0
27f4762c8794ef1c5d042933562185980eb85ae5
[ "parquet/src/arrow/mod.rs - arrow (line 55)" ]
[ "parquet/src/file/mod.rs - file (line 81) - compile", "parquet/src/arrow/arrow_reader.rs - arrow::arrow_reader::ParquetFileArrowReader::try_new (line 203) - compile", "parquet/src/file/mod.rs - file (line 64) - compile", "parquet/src/file/mod.rs - file (line 29) - compile", "parquet/src/record/api.rs - reco...
[]
[]
apache/arrow-rs
2,377
apache__arrow-rs-2377
[ "1254" ]
613b99dcc43ef3af9603fd823f8fe42a801bac19
diff --git a/.github/workflows/parquet.yml b/.github/workflows/parquet.yml index d8e09f04ba83..ad694ec60399 100644 --- a/.github/workflows/parquet.yml +++ b/.github/workflows/parquet.yml @@ -128,8 +128,4 @@ jobs: rustup component add clippy - name: Run clippy run: | - # Only run clip...
diff --git a/parquet/src/arrow/array_reader/test_util.rs b/parquet/src/arrow/array_reader/test_util.rs index da9b8d3bf9b2..ca1aabfd4aa1 100644 --- a/parquet/src/arrow/array_reader/test_util.rs +++ b/parquet/src/arrow/array_reader/test_util.rs @@ -48,8 +48,7 @@ pub fn utf8_column() -> ColumnDescPtr { /// Encode `data...
Fix all clippy lints in parquet crate **Describe the bug** Due to "historical reasons" there are several clippy lints that are disabled in the parquet crate https://github.com/apache/arrow-rs/blob/master/parquet/src/lib.rs#L18-L36 ```rust #![allow(incomplete_features)] #![allow(dead_code)] #![allow(non_camel_ca...
I'd like to have a try if no one else has been doing it! Rust Clippy is really interesting! There are many dead code and unused public functions. I am not sure whether to clean them up. > There are many dead code and unused public functions. I am not sure whether to clean them up. I recommend doing this issue in a...
2022-08-08T19:09:34Z
20.0
27f4762c8794ef1c5d042933562185980eb85ae5
[ "parquet/src/schema/types.rs - schema::types::ColumnPath::append (line 674)" ]
[ "parquet/src/file/mod.rs - file (line 64) - compile", "parquet/src/file/mod.rs - file (line 81) - compile", "parquet/src/file/mod.rs - file (line 29) - compile", "parquet/src/record/api.rs - record::api::Row::get_column_iter (line 62) - compile", "parquet/src/column/mod.rs - column (line 38) - compile", "...
[]
[ "parquet/src/arrow/arrow_writer/mod.rs - arrow::arrow_writer::ArrowWriter (line 55)" ]
apache/arrow-rs
5,092
apache__arrow-rs-5092
[ "5091" ]
481652a4f8d972b633063158903dbdb0adcf094d
diff --git a/arrow-data/src/transform/mod.rs b/arrow-data/src/transform/mod.rs index af25e9c7e3dc..268cf10f2326 100644 --- a/arrow-data/src/transform/mod.rs +++ b/arrow-data/src/transform/mod.rs @@ -354,6 +354,14 @@ impl<'a> MutableArrayData<'a> { ) -> Self { let data_type = arrays[0].data_type(); + ...
diff --git a/arrow/tests/array_transform.rs b/arrow/tests/array_transform.rs index ccf66e1c30ad..74e2a212736a 100644 --- a/arrow/tests/array_transform.rs +++ b/arrow/tests/array_transform.rs @@ -975,6 +975,14 @@ fn test_extend_nulls_panic() { mutable.extend_nulls(2); } +#[test] +#[should_panic(expected = "Array...
Unsound MutableArrayData Constructor **Describe the bug** <!-- A clear and concise description of what the bug is. --> I want to use `MutableArrayData` to construct an array, but if the input array sequence is different, the output will be different. This is because `MutableArrayData::new_with_capacities` will...
I think it is probably a bug that MutableArrayData lets you extend with a mixture of types, this is not what it is intended to do and is highly unlikely to behave correctly... I was sure it checked this Edit: it would appear this does is not only incorrect but is unsound, will prioritize fixing this Thanks for your ...
2023-11-17T15:11:14Z
49.0
a9470d3eb083303350fc109f94865666fd0f062f
[ "test_mixed_types - should panic" ]
[ "arrow/src/lib.rs - (line 108)", "arrow/src/lib.rs - (line 89)", "arrow/src/lib.rs - (line 221)", "arrow/src/lib.rs - (line 65)", "arrow/src/lib.rs - (line 31)", "arrow/src/lib.rs - (line 46)", "arrow/src/lib.rs - (line 129)", "arrow/src/lib.rs - (line 250)", "arrow/src/lib.rs - (line 195)", "arro...
[]
[]
apache/arrow-rs
5,076
apache__arrow-rs-5076
[ "5037" ]
7ba36b012322e08b06184c806f8ba339181cebc1
diff --git a/parquet/src/column/writer/mod.rs b/parquet/src/column/writer/mod.rs index a917c4864988..11c39685911c 100644 --- a/parquet/src/column/writer/mod.rs +++ b/parquet/src/column/writer/mod.rs @@ -636,8 +636,16 @@ impl<'a, E: ColumnValueEncoder> GenericColumnWriter<'a, E> { Type::BYTE_ARR...
diff --git a/parquet/tests/arrow_writer_layout.rs b/parquet/tests/arrow_writer_layout.rs index fab87f32f5c4..cd124031cfdc 100644 --- a/parquet/tests/arrow_writer_layout.rs +++ b/parquet/tests/arrow_writer_layout.rs @@ -185,7 +185,7 @@ fn test_primitive() { pages: (0..8) .ma...
Binary columns do not receive truncated statistics **Describe the bug** #4389 introduced truncation on column indices for binary columns, where the min/max values for a binary column may be arbitrarily large. As noted, this matches the behaviour in parquet-mr for shortening columns. However, the value in the statis...
Support for this was only added to the parquet standard 3 weeks ago - https://github.com/apache/parquet-format/pull/216 TBC this will be a breaking API change, as it will break workloads expecting the statistics to not be truncated Got it. It looks like the change to enable statistics truncation was done to parquet-mr...
2023-11-14T13:24:14Z
49.0
a9470d3eb083303350fc109f94865666fd0f062f
[ "test_list", "test_primitive", "test_string" ]
[ "parquet/src/file/mod.rs - file (line 80) - compile", "parquet/src/record/api.rs - record::api::Row::get_column_iter (line 64) - compile", "parquet/src/file/mod.rs - file (line 29) - compile", "parquet/src/file/mod.rs - file (line 63) - compile", "parquet/src/column/mod.rs - column (line 38) - compile", "...
[]
[]
apache/arrow-rs
2,890
apache__arrow-rs-2890
[ "2889" ]
17d1aade3572d1609cf6ed0e3db15f3d68511460
diff --git a/parquet/Cargo.toml b/parquet/Cargo.toml index 819f41bca32a..9c7da94f9dd7 100644 --- a/parquet/Cargo.toml +++ b/parquet/Cargo.toml @@ -81,6 +81,10 @@ experimental = [] # Enable async APIs async = ["futures", "tokio"] +[[test]] +name = "arrow_writer_layout" +required-features = ["arrow"] + [[bin]] name...
diff --git a/parquet/tests/arrow_writer_layout.rs b/parquet/tests/arrow_writer_layout.rs new file mode 100644 index 000000000000..40076add325a --- /dev/null +++ b/parquet/tests/arrow_writer_layout.rs @@ -0,0 +1,472 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreeme...
Overly Pessimistic RLE Size Estimation **Describe the bug** <!-- A clear and concise description of what the bug is. --> The size of RLE encoded data is routinely estimated as ``` RleEncoder::min_buffer_size(bit_width) + RleEncoder::max_buffer_size(bit_width, self.indices.len()) ``` Where `Rl...
2022-10-18T01:56:17Z
25.0
a9f632c1bd04410c2528543d74151a91f78643cf
[ "test_primitive", "test_string" ]
[ "parquet/src/file/mod.rs - file (line 64) - compile", "parquet/src/record/api.rs - record::api::Row::get_column_iter (line 62) - compile", "parquet/src/file/mod.rs - file (line 29) - compile", "parquet/src/file/mod.rs - file (line 81) - compile", "parquet/src/arrow/arrow_reader/mod.rs - arrow::arrow_reader:...
[]
[]
apache/arrow-rs
4,681
apache__arrow-rs-4681
[ "4255" ]
c6184389241a0c85823aa494e8b5d93343771666
diff --git a/arrow-array/src/array/list_array.rs b/arrow-array/src/array/list_array.rs index 05628084c844..e50f2eb0941d 100644 --- a/arrow-array/src/array/list_array.rs +++ b/arrow-array/src/array/list_array.rs @@ -1037,13 +1037,17 @@ mod tests { #[should_panic( expected = "Memory pointer is not aligned w...
diff --git a/arrow/tests/array_validation.rs b/arrow/tests/array_validation.rs index 0d3652a0473a..fa80db1860cd 100644 --- a/arrow/tests/array_validation.rs +++ b/arrow/tests/array_validation.rs @@ -56,7 +56,9 @@ fn test_bad_number_of_buffers() { } #[test] -#[should_panic(expected = "integer overflow computing min ...
Handle Misaligned IPC Buffers **Is your feature request related to a problem or challenge? Please describe what you are trying to do.** <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] (This section helps Arrow developers understand the context and *why* for this fea...
2023-08-11T11:00:40Z
45.0
c6184389241a0c85823aa494e8b5d93343771666
[ "test_fixed_width_overflow - should panic" ]
[ "arrow/src/lib.rs - (line 108)", "arrow/src/lib.rs - (line 89)", "arrow/src/lib.rs - (line 221)", "arrow/src/lib.rs - (line 65)", "arrow/src/lib.rs - (line 31)", "arrow/src/lib.rs - (line 195)", "arrow/src/lib.rs - (line 250)", "arrow/src/lib.rs - (line 46)", "arrow/src/lib.rs - (line 129)", "arro...
[]
[]
apache/arrow-rs
4,670
apache__arrow-rs-4670
[ "4637" ]
5023ea8438e3143bf711a89a3a2ffb8838a18e9e
diff --git a/arrow-data/src/equal/fixed_binary.rs b/arrow-data/src/equal/fixed_binary.rs index 9e0e77ff7eca..40dacdddd3a0 100644 --- a/arrow-data/src/equal/fixed_binary.rs +++ b/arrow-data/src/equal/fixed_binary.rs @@ -80,7 +80,7 @@ pub(super) fn fixed_binary_equal( lhs_start + lhs_nulls.offset(), ...
diff --git a/arrow/tests/array_equal.rs b/arrow/tests/array_equal.rs index 83a280db67b8..4abe31a36cf5 100644 --- a/arrow/tests/array_equal.rs +++ b/arrow/tests/array_equal.rs @@ -1295,3 +1295,25 @@ fn test_struct_equal_slice() { test_equal(&a, &b, true); } + +#[test] +fn test_list_excess_children_equal() { + ...
`List(FixedSizeBinary)` array equality check may return wrong result **Describe the bug** `<ListArray as PartialEq>::eq` returns `false` for two arrays of datatype `List(FixedSizeBinary(5))` containing identical values but physically differ. **To Reproduce** ```rust #[test] fn test_list_excess_children_equal() {...
These two array isn't equal in fact. ``` values: [ [49, 49, 49, 49, 49], [50, 50, 50, 50, 50], null, ] value_offsets: [0, 1, 3] values [ [50, 50, 50, 50, 50], null, ] value_offsets [0, 0, 2] ```
2023-08-09T15:59:12Z
45.0
c6184389241a0c85823aa494e8b5d93343771666
[ "test_list_excess_children_equal" ]
[ "arrow/src/lib.rs - (line 108)", "arrow/src/lib.rs - (line 89)", "arrow/src/lib.rs - (line 221)", "arrow/src/lib.rs - (line 65)", "arrow/src/lib.rs - (line 31)", "arrow/src/lib.rs - (line 195)", "arrow/src/lib.rs - (line 46)", "arrow/src/lib.rs - (line 250)", "arrow/src/lib.rs - (line 129)", "arro...
[]
[]
apache/arrow-rs
4,598
apache__arrow-rs-4598
[ "4578" ]
95683439fa4108c036e48b334f8bed898b87a9b9
diff --git a/arrow-data/src/transform/union.rs b/arrow-data/src/transform/union.rs index 8d1ea34c314d..d7083588d782 100644 --- a/arrow-data/src/transform/union.rs +++ b/arrow-data/src/transform/union.rs @@ -39,6 +39,9 @@ pub(super) fn build_extend_sparse(array: &ArrayData) -> Extend { pub(super) fn build_extend_dense(...
diff --git a/arrow/tests/array_transform.rs b/arrow/tests/array_transform.rs index ebbadc00aecd..15141eb208e4 100644 --- a/arrow/tests/array_transform.rs +++ b/arrow/tests/array_transform.rs @@ -19,7 +19,7 @@ use arrow::array::{ Array, ArrayRef, BooleanArray, Decimal128Array, DictionaryArray, FixedSizeBinaryA...
`arrow::compute::concat` panics for dense union arrays with non-trivial type IDs **Describe the bug** `arrow::compute::concat` panics when called with dense union arrays with type IDs that don't start at zero. ``` thread 'proptest::tests::qc_row' panicked at 'index out of bounds: the len is 1 but the index is 35',...
MutableArrayData likely needs to be updated to properly understand UnionArray with non-trivial type ids
2023-07-31T04:27:18Z
45.0
c6184389241a0c85823aa494e8b5d93343771666
[ "test_union_dense" ]
[ "arrow/src/lib.rs - (line 108)", "arrow/src/lib.rs - (line 89)", "arrow/src/lib.rs - (line 221)", "arrow/src/lib.rs - (line 65)", "arrow/src/lib.rs - (line 31)", "arrow/src/lib.rs - (line 195)", "arrow/src/lib.rs - (line 46)", "arrow/src/lib.rs - (line 250)", "arrow/src/util/string_writer.rs - util:...
[]
[]
apache/arrow-rs
6,368
apache__arrow-rs-6368
[ "6366" ]
0491294828a6480959ba3983355b415abbaf1174
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 1937fafe3a62..41edc1bb194e 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -48,7 +48,6 @@ on: - arrow/** jobs: - integration: name: Archery test With other arrows run...
diff --git a/arrow/tests/pyarrow.rs b/arrow/tests/pyarrow.rs index a1c365c31798..d9ebd0daa1cd 100644 --- a/arrow/tests/pyarrow.rs +++ b/arrow/tests/pyarrow.rs @@ -18,6 +18,8 @@ use arrow::array::{ArrayRef, Int32Array, StringArray}; use arrow::pyarrow::{FromPyArrow, ToPyArrow}; use arrow::record_batch::RecordBatch; +...
Exporting Binary/Utf8View from arrow-rs to pyarrow fails **Describe the bug** Exporting binaryview arrow to pyarrow fails with `Expected at least 3 buffers for imported type binary_view, ArrowArray struct has 2` **To Reproduce** Construct binaryview array and export it over c data interface to pyarrow **Ex...
2024-09-06T21:16:12Z
53.0
f41c258246cd4bd9d89228cded9ed54dbd00faff
[ "test_to_pyarrow", "test_to_pyarrow_byte_view" ]
[ "arrow/src/lib.rs - (line 118)", "arrow/src/lib.rs - (line 95)", "arrow/src/lib.rs - (line 235)", "arrow/src/lib.rs - (line 31)", "arrow/src/lib.rs - (line 70)", "arrow/src/lib.rs - (line 205)", "arrow/src/lib.rs - (line 48)", "arrow/src/lib.rs - (line 139)", "arrow/src/lib.rs - (line 264)", "arro...
[]
[]
apache/arrow-rs
4,909
apache__arrow-rs-4909
[ "4735" ]
ed58e767d7607e954085842a57a680b6807794e0
diff --git a/arrow-csv/src/writer.rs b/arrow-csv/src/writer.rs index 840e8e8a93cc..1ca956e2c73f 100644 --- a/arrow-csv/src/writer.rs +++ b/arrow-csv/src/writer.rs @@ -70,11 +70,6 @@ use csv::ByteRecord; use std::io::Write; use crate::map_csv_error; - -const DEFAULT_DATE_FORMAT: &str = "%F"; -const DEFAULT_TIME_FORM...
diff --git a/arrow/tests/csv.rs b/arrow/tests/csv.rs index 3ee319101757..a79b6b44c2d3 100644 --- a/arrow/tests/csv.rs +++ b/arrow/tests/csv.rs @@ -53,48 +53,6 @@ fn test_export_csv_timestamps() { } drop(writer); - let left = "c1,c2 -2019-04-18T20:54:47.378000000+10:00,2019-04-18T10:54:47.378000000 -2021-...
Add read access to settings in `csv::WriterBuilder` **Is your feature request related to a problem or challenge? Please describe what you are trying to do.** While implementing CSV writing in DataFusion (see https://github.com/apache/arrow-datafusion/pull/7390/files), we would like to be able to check the value of `...
Looks it is easy.
2023-10-09T16:11:31Z
47.0
fa7a61a4b074ca4ec9bf429cc84b6c325057d96e
[ "test_export_csv_timestamps" ]
[ "arrow/src/lib.rs - (line 89)", "arrow/src/lib.rs - (line 108)", "arrow/src/lib.rs - (line 221)", "arrow/src/lib.rs - (line 65)", "arrow/src/lib.rs - (line 31)", "arrow/src/lib.rs - (line 129)", "arrow/src/lib.rs - (line 46)", "arrow/src/lib.rs - (line 250)", "arrow/src/util/string_writer.rs - util:...
[]
[]
apache/arrow-rs
2,044
apache__arrow-rs-2044
[ "2043" ]
ca5fe7df5ca0bdcfd6f732cc3f10da511b753c5f
diff --git a/parquet/src/arrow/async_reader.rs b/parquet/src/arrow/async_reader.rs index b251c2a827e7..923f329eff20 100644 --- a/parquet/src/arrow/async_reader.rs +++ b/parquet/src/arrow/async_reader.rs @@ -552,7 +552,7 @@ impl PageReader for InMemoryColumnChunkReader { Ok(None) } - fn peek_next_page...
diff --git a/parquet/src/util/test_common/page_util.rs b/parquet/src/util/test_common/page_util.rs index 0b70c38ad0e6..f56eaf85e636 100644 --- a/parquet/src/util/test_common/page_util.rs +++ b/parquet/src/util/test_common/page_util.rs @@ -173,7 +173,7 @@ impl<P: Iterator<Item = Page> + Send> PageReader for InMemoryPage...
Support `peek_next_page()` and `skip_next_page` in `SerializedPageReader` **Is your feature request related to a problem or challenge? Please describe what you are trying to do.** Add `skip_next_page` and `peek_next_page` function to SerializedPageReader that uses the column index to skip the next page without reading...
2022-07-11T15:00:53Z
18.0
2541e2c88913d115cbe85312d1dc0202457c050c
[ "parquet/src/arrow/mod.rs - arrow (line 55)" ]
[ "parquet/src/arrow/arrow_reader.rs - arrow::arrow_reader::ParquetFileArrowReader::try_new (line 199) - compile", "parquet/src/file/mod.rs - file (line 81) - compile", "parquet/src/record/api.rs - record::api::Row::get_column_iter (line 62) - compile", "parquet/src/file/mod.rs - file (line 64) - compile", "p...
[]
[]
apache/arrow-rs
3,222
apache__arrow-rs-3222
[ "3221" ]
1a8e6ed957e483ec27b88fce54a48b8176be3179
diff --git a/arrow-cast/src/cast.rs b/arrow-cast/src/cast.rs index 23be8839593c..ad9f08388326 100644 --- a/arrow-cast/src/cast.rs +++ b/arrow-cast/src/cast.rs @@ -160,7 +160,7 @@ pub fn can_cast_types(from_type: &DataType, to_type: &DataType) -> bool { | Time64(TimeUnit::Nanosecond) | Timestam...
diff --git a/arrow/tests/array_cast.rs b/arrow/tests/array_cast.rs new file mode 100644 index 000000000000..95fb973289a5 --- /dev/null +++ b/arrow/tests/array_cast.rs @@ -0,0 +1,407 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// dis...
bool should cast from/to Float16Type as `can_cast_types` returns true **Describe the bug** <!-- A clear and concise description of what the bug is. --> `can_cast_types` returns true for casting between bool and Float16, but actually cast kernel doesn't cast them. **To Reproduce** <!-- Steps to reproduce the ...
2022-11-29T08:03:42Z
28.0
26438feb7a59aa156563ed8c6e8b0e6579b2e028
[ "test_can_cast_types" ]
[ "arrow/src/compute/kernels/aggregate.rs - compute::kernels::aggregate::max_boolean (line 90)", "arrow/src/compute/kernels/aggregate.rs - compute::kernels::aggregate::min_boolean (line 65)", "arrow/src/compute/kernels/boolean.rs - compute::kernels::boolean::is_not_null (line 435)", "arrow/src/array/ord.rs - ar...
[]
[]
apache/arrow-rs
3,238
apache__arrow-rs-3238
[ "3250" ]
26438feb7a59aa156563ed8c6e8b0e6579b2e028
diff --git a/arrow-cast/src/cast.rs b/arrow-cast/src/cast.rs index be767f137cd8..0e420674b2ab 100644 --- a/arrow-cast/src/cast.rs +++ b/arrow-cast/src/cast.rs @@ -71,24 +71,7 @@ pub fn can_cast_types(from_type: &DataType, to_type: &DataType) -> bool { } match (from_type, to_type) { - // TODO UTF8 to ...
diff --git a/arrow/tests/array_cast.rs b/arrow/tests/array_cast.rs index 95fb973289a5..be37a7636b63 100644 --- a/arrow/tests/array_cast.rs +++ b/arrow/tests/array_cast.rs @@ -19,12 +19,13 @@ use arrow_array::builder::{ PrimitiveDictionaryBuilder, StringDictionaryBuilder, UnionBuilder, }; use arrow_array::types::...
Some more inconsistency between can_cast_types and cast_with_options **Describe the bug** <!-- A clear and concise description of what the bug is. --> There are more inconsistency between `can_cast_types` and `cast_with_options` that is `cast_with_options` can cast but `can_cast_types` reports `false`. For ex...
2022-11-30T08:02:16Z
28.0
26438feb7a59aa156563ed8c6e8b0e6579b2e028
[ "test_can_cast_types" ]
[ "arrow/src/compute/kernels/boolean.rs - compute::kernels::boolean::and_kleene (line 263)", "arrow/src/array/ord.rs - array::ord::build_compare (line 162)", "arrow/src/compute/kernels/boolean.rs - compute::kernels::boolean::is_null (line 393)", "arrow/src/compute/kernels/boolean.rs - compute::kernels::boolean:...
[]
[]
apache/arrow-rs
3,188
apache__arrow-rs-3188
[ "3136" ]
fd08c31a2cd37342d261f67e999b2be2d5a4ba6b
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3ece06b29238..656e56a652ca 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -149,13 +149,13 @@ jobs: virtualenv venv source venv/bin/activate pip install mat...
diff --git a/arrow/tests/pyarrow.rs b/arrow/tests/pyarrow.rs new file mode 100644 index 000000000000..4b1226c738f5 --- /dev/null +++ b/arrow/tests/pyarrow.rs @@ -0,0 +1,42 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed w...
arrow to and from pyarrow conversion results in changes in schema **Describe the bug** <!-- A clear and concise description of what the bug is. --> Converting a RecordBatch to pyarrow RecordBatch and converting it back to rust RecordBatch results in inconsistent schema. **To Reproduce** <!-- Steps to repr...
Yes, we may need pass the schema to the pyarrow's `from_arrays` in [to_pyarrow](https://github.com/apache/arrow-rs/blob/2460c7b5da2ba22c7fb0ef0df6ac84984e3aed12/arrow/src/pyarrow.rs#L200)
2022-11-25T04:08:06Z
28.0
26438feb7a59aa156563ed8c6e8b0e6579b2e028
[ "test_to_pyarrow" ]
[ "arrow/src/compute/kernels/aggregate.rs - compute::kernels::aggregate::min_boolean (line 65)", "arrow/src/compute/kernels/boolean.rs - compute::kernels::boolean::and (line 230)", "arrow/src/compute/kernels/boolean.rs - compute::kernels::boolean::not (line 353)", "arrow/src/compute/kernels/boolean.rs - compute...
[]
[]
apache/arrow-rs
4,045
apache__arrow-rs-4045
[ "4044" ]
fec282fd43add7df97ca8f58eb5eaa42eb9c928d
diff --git a/arrow-data/src/equal/union.rs b/arrow-data/src/equal/union.rs index 4f04bc287aa8..5869afc30dbe 100644 --- a/arrow-data/src/equal/union.rs +++ b/arrow-data/src/equal/union.rs @@ -70,7 +70,13 @@ fn equal_sparse( .iter() .zip(rhs.child_data()) .all(|(lhs_values, rhs_values)| { - ...
diff --git a/arrow/tests/array_equal.rs b/arrow/tests/array_equal.rs index 93296c3b0e43..83a280db67b8 100644 --- a/arrow/tests/array_equal.rs +++ b/arrow/tests/array_equal.rs @@ -1155,6 +1155,22 @@ fn test_union_equal_sparse() { test_equal(&union1, &union4, false); } +#[test] +fn test_union_equal_sparse_slice()...
Sparse UnionArray Equality Incorrect Offset Handling **Describe the bug** <!-- A clear and concise description of what the bug is. --> **To Reproduce** <!-- Steps to reproduce the behavior: --> ``` #[test] fn test_union_equal_sparse_slice() { let mut builder = UnionBuilder::new_sparse(); builder...
2023-04-10T14:51:17Z
37.0
a35c6c5f4309787a9a2f523920af2efd9b1682b9
[ "test_union_equal_sparse_slice" ]
[ "arrow/src/lib.rs - (line 121)", "arrow/src/lib.rs - (line 140)", "arrow/src/lib.rs - (line 253)", "arrow/src/lib.rs - (line 78)", "arrow/src/lib.rs - (line 63)", "arrow/src/lib.rs - (line 282)", "arrow/src/lib.rs - (line 161)", "arrow/src/lib.rs - (line 198)", "arrow/src/lib.rs - (line 227)", "ar...
[]
[]
apache/arrow-rs
3,811
apache__arrow-rs-3811
[ "3779" ]
3df7c00a358cff34da8bacd819e791892755d3a9
diff --git a/arrow-flight/src/encode.rs b/arrow-flight/src/encode.rs index 2e93acb0931c..557663922121 100644 --- a/arrow-flight/src/encode.rs +++ b/arrow-flight/src/encode.rs @@ -323,7 +323,7 @@ fn prepare_schema_for_flight(schema: &Schema) -> Schema { }) .collect(); - Schema::new(fields) + Sc...
diff --git a/arrow-flight/tests/encode_decode.rs b/arrow-flight/tests/encode_decode.rs index 25e74cb3b6bc..8c73a516b2b0 100644 --- a/arrow-flight/tests/encode_decode.rs +++ b/arrow-flight/tests/encode_decode.rs @@ -17,7 +17,7 @@ //! Tests for round trip encoding / decoding -use std::sync::Arc; +use std::{collectio...
Schema-level metadata is not encoded in Flight responses **Describe the bug** When preparing schema for encoding into a Flight response, the schema-level metadata from the source schema is dropped: https://github.com/apache/arrow-rs/blob/e7eb304dac442a943c434f8ea248de909f82aa88/arrow-flight/src/encode.rs#L326 ...
@alamb I can confirm that with this patch: ```patch Index: arrow-flight/src/encode.rs IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/arrow-flight/src/encode.rs b/arrow-flight/src/encode.rs...
2023-03-07T05:35:13Z
34.0
495682aa72ffe92bbd0d6d8d93e0c00b5483ff7d
[ "test_schema_metadata" ]
[ "arrow-flight/src/client.rs - client::FlightClient::do_action (line 512) - compile", "arrow-flight/src/client.rs - client::FlightClient::do_get (line 178) - compile", "arrow-flight/src/client.rs - client::FlightClient (line 45) - compile", "arrow-flight/src/client.rs - client::FlightClient::get_flight_info (l...
[]
[]