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 2020/10/05 16:53:11 UTC

[GitHub] [arrow] pitrou commented on a change in pull request #8343: ARROW-9147: [C++][Dataset] Support projection from null->any type

pitrou commented on a change in pull request #8343:
URL: https://github.com/apache/arrow/pull/8343#discussion_r499739059



##########
File path: cpp/src/arrow/dataset/projector.cc
##########
@@ -46,6 +46,15 @@ Status CheckProjectable(const Schema& from, const Schema& to) {
                                from);
     }
 
+    if (from_field->type()->id() == Type::NA) {
+      // promotion from null to any type is supported
+      if (to_field->nullable()) continue;
+
+      return Status::TypeError("field ", to_field->ToString(),
+                               " is not nullable and but has type ", NullType(),

Review comment:
       "and but"?




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

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