You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "felipecrv (via GitHub)" <gi...@apache.org> on 2023/07/11 15:22:01 UTC

[GitHub] [arrow] felipecrv commented on a diff in pull request #36018: GH-35581: [C++] Store offsets in scalars

felipecrv commented on code in PR #36018:
URL: https://github.com/apache/arrow/pull/36018#discussion_r1259901071


##########
cpp/src/arrow/compute/kernels/test_util.cc:
##########
@@ -263,6 +263,23 @@ void CheckScalarUnary(std::string func_name, std::shared_ptr<DataType> in_ty,
 
 void CheckVectorUnary(std::string func_name, Datum input, Datum expected,
                       const FunctionOptions* options) {
+  // WTF debug
+  std::cout << "input: ";
+  switch (input.kind()) {
+    case Datum::ARRAY:
+      std::cout << input.make_array()->ToString();
+      break;
+    case Datum::CHUNKED_ARRAY:
+      std::cout << input.chunked_array()->ToString();
+      break;
+    case Datum::SCALAR:
+      std::cout << input.scalar()->ToString();
+      break;
+    default:
+      std::cout << input.ToString();
+      break;
+  }
+  std::cout << std::endl;

Review Comment:
   Should this have been merged?



-- 
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