You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/20 19:59:52 UTC

[GitHub] [arrow-rs] maxburke opened a new pull request, #2905: Implement ord for FixedSizeBinary types

maxburke opened a new pull request, #2905:
URL: https://github.com/apache/arrow-rs/pull/2905

   # Which issue does this PR close?
   
   Closes #2094
   
   # Rationale for this change
    
   Implementing sorting / grouping in datafusion on columns of type FixedSizeBinary requires that ord be implemented for FixedSizeBinary types.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] maxburke commented on pull request #2905: Implement ord for FixedSizeBinary types

Posted by GitBox <gi...@apache.org>.
maxburke commented on PR #2905:
URL: https://github.com/apache/arrow-rs/pull/2905#issuecomment-1286098631

   Tests added, issue link fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold merged pull request #2905: Implement ord for FixedSizeBinary types

Posted by GitBox <gi...@apache.org>.
tustvold merged PR #2905:
URL: https://github.com/apache/arrow-rs/pull/2905


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #2905: Implement ord for FixedSizeBinary types

Posted by GitBox <gi...@apache.org>.
tustvold commented on code in PR #2905:
URL: https://github.com/apache/arrow-rs/pull/2905#discussion_r1001069352


##########
arrow/src/array/ord.rs:
##########
@@ -295,6 +295,14 @@ pub fn build_compare(left: &dyn Array, right: &dyn Array) -> Result<DynComparato
             let right: Decimal128Array = Decimal128Array::from(right.data().clone());
             Box::new(move |i, j| left.value(i).cmp(&right.value(j)))
         }
+        (FixedSizeBinary(_), FixedSizeBinary(_)) => {

Review Comment:
   FYI the comparison and sort kernels do not make use of this `DynComparator`, and I actually hope to at some point deprecate it in favor of the row format.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] ursabot commented on pull request #2905: Implement ord for FixedSizeBinary types

Posted by GitBox <gi...@apache.org>.
ursabot commented on PR #2905:
URL: https://github.com/apache/arrow-rs/pull/2905#issuecomment-1290952051

   Benchmark runs are scheduled for baseline = be483777092cb1007ced0323a1c659c2634b1a5c and contender = f629a2ebe08033e7b78585d82e98c50a4439e7a2. f629a2ebe08033e7b78585d82e98c50a4439e7a2 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
   Conbench compare runs links:
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on ec2-t3-xlarge-us-east-2] [ec2-t3-xlarge-us-east-2](https://conbench.ursa.dev/compare/runs/92bed1b903cd472e806e54551867a995...9915b20d8cb04752a453bf62fef6558f/)
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on test-mac-arm] [test-mac-arm](https://conbench.ursa.dev/compare/runs/dab50072bd8a49718188088e4c4460b4...6197998b50644f0aa44d79c5ba7bd671/)
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on ursa-i9-9960x] [ursa-i9-9960x](https://conbench.ursa.dev/compare/runs/5f3cb42d8d634990adda98b226d64c2d...97c1da60cd6f48fda45c89493ba53858/)
   [Skipped :warning: Benchmarking of arrow-rs-commits is not supported on ursa-thinkcentre-m75q] [ursa-thinkcentre-m75q](https://conbench.ursa.dev/compare/runs/2d21561961264403bcc69e5f17946774...394f8435eded43588c16ca677f0ac354/)
   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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] maxburke commented on a diff in pull request #2905: Implement ord for FixedSizeBinary types

Posted by GitBox <gi...@apache.org>.
maxburke commented on code in PR #2905:
URL: https://github.com/apache/arrow-rs/pull/2905#discussion_r1001078616


##########
arrow/src/array/ord.rs:
##########
@@ -295,6 +295,14 @@ pub fn build_compare(left: &dyn Array, right: &dyn Array) -> Result<DynComparato
             let right: Decimal128Array = Decimal128Array::from(right.data().clone());
             Box::new(move |i, j| left.value(i).cmp(&right.value(j)))
         }
+        (FixedSizeBinary(_), FixedSizeBinary(_)) => {

Review Comment:
   That may be but we were running into the unhandled case in this match firing when testing https://github.com/apache/arrow-datafusion/pull/3911



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #2905: Implement ord for FixedSizeBinary types

Posted by GitBox <gi...@apache.org>.
tustvold commented on code in PR #2905:
URL: https://github.com/apache/arrow-rs/pull/2905#discussion_r1001212862


##########
arrow/src/array/ord.rs:
##########
@@ -307,10 +315,34 @@ pub fn build_compare(left: &dyn Array, right: &dyn Array) -> Result<DynComparato
 #[cfg(test)]
 pub mod tests {
     use super::*;
-    use crate::array::{Float64Array, Int32Array};
+    use crate::array::{FixedSizeBinaryArray, Float64Array, Int32Array};
     use crate::error::Result;
     use std::cmp::Ordering;
 
+    #[test]

Review Comment:
   Even better would be some tests with more than one value in the list, and some tests of more than just `Ordering::Less` :sweat_smile:



##########
arrow/src/array/ord.rs:
##########
@@ -307,10 +315,34 @@ pub fn build_compare(left: &dyn Array, right: &dyn Array) -> Result<DynComparato
 #[cfg(test)]
 pub mod tests {
     use super::*;
-    use crate::array::{Float64Array, Int32Array};
+    use crate::array::{FixedSizeBinaryArray, Float64Array, Int32Array};
     use crate::error::Result;
     use std::cmp::Ordering;
 
+    #[test]

Review Comment:
   Even better would be some tests with more than one value in the list, and some tests of more than just `Ordering::Less`, but don't feel strongly :sweat_smile:



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #2905: Implement ord for FixedSizeBinary types

Posted by GitBox <gi...@apache.org>.
tustvold commented on code in PR #2905:
URL: https://github.com/apache/arrow-rs/pull/2905#discussion_r1001212862


##########
arrow/src/array/ord.rs:
##########
@@ -307,10 +315,34 @@ pub fn build_compare(left: &dyn Array, right: &dyn Array) -> Result<DynComparato
 #[cfg(test)]
 pub mod tests {
     use super::*;
-    use crate::array::{Float64Array, Int32Array};
+    use crate::array::{FixedSizeBinaryArray, Float64Array, Int32Array};
     use crate::error::Result;
     use std::cmp::Ordering;
 
+    #[test]

Review Comment:
   Even better would be some tests with more than one value :sweat_smile: 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org