Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to arrow 19.0.0 #2955

Merged
merged 5 commits into from Jul 27, 2022
Merged

Update to arrow 19.0.0 #2955

merged 5 commits into from Jul 27, 2022

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jul 21, 2022

Draft until arrow 19.0.0 is released, see apache/arrow-rs#2051 for details
Closes #2973
Closes #2974
Closes #2975

@github-actions github-actions bot added core Core datafusion crate logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions sql labels Jul 21, 2022
@alamb alamb force-pushed the alamb/update_arrow_19.0.0 branch from dde2b4f to dd1684c Compare July 27, 2022 12:49
@@ -527,15 +527,15 @@ macro_rules! build_values_list {
for scalar_value in $VALUES {
match scalar_value {
ScalarValue::$SCALAR_TY(Some(v)) => {
builder.values().append_value(v.clone()).unwrap()
builder.values().append_value(v.clone());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many of the changes in this PR are driven by apache/arrow-rs#2103 (that made the builders to infallible)

@@ -917,6 +917,11 @@ impl ScalarValue {
ScalarValue::iter_to_decimal_array(scalars, precision, scale)?;
Arc::new(decimal_array)
}
DataType::Decimal256(_, _) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1112,14 +1117,14 @@ impl ScalarValue {
scalars: impl IntoIterator<Item = ScalarValue>,
precision: &usize,
scale: &usize,
) -> Result<DecimalArray> {
) -> Result<Decimal128Array> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DecimalArray now is DecimalArray128 to add support of DecimalArray256 -- in apache/arrow-rs#2101

rows: RecordSlice,
col_name: &str,
) -> ArrowResult<ArrayRef> {
fn build_boolean_array(&self, rows: RecordSlice, col_name: &str) -> ArrayRef {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is another example showing the builders have become infallable

@@ -271,12 +271,18 @@ mod tests {

#[test]
fn test_cast_decimal_to_decimal() -> Result<()> {
let array = vec![1234, 2222, 3, 4000, 5000];
let array = vec![
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug in the test -- the input data had 5 rows but the expected value had 6 values (and apparently is_valid() used to return false for an index off the end of the array and in arrow 19 it returns true)

Copy link
Contributor Author

@alamb alamb Jul 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alamb alamb marked this pull request as ready for review July 27, 2022 17:40
@alamb alamb merged commit cd31649 into apache:master Jul 27, 2022
@alamb alamb deleted the alamb/update_arrow_19.0.0 branch July 27, 2022 18:55
@ursabot
Copy link

ursabot commented Jul 27, 2022

Benchmark runs are scheduled for baseline = c345f6d and contender = cd31649. cd31649 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core datafusion crate logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions sql
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants