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/02/25 23:42:42 UTC

[GitHub] [arrow] JabariBooker opened a new pull request #12517: [C++] Cast between fixed size list type and variable size list

JabariBooker opened a new pull request #12517:
URL: https://github.com/apache/arrow/pull/12517


   Adding casts between FixedSizeListType and other variable size list 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] github-actions[bot] commented on pull request #12517: [C++] Cast between fixed size list type and variable size list

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #12517:
URL: https://github.com/apache/arrow/pull/12517#issuecomment-1051368651


   <!--
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.
   -->
   
   Thanks for opening a pull request!
   
   If this is not a [minor PR](https://github.com/apache/arrow/blob/master/CONTRIBUTING.md#Minor-Fixes). Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW
   
   Opening JIRAs ahead of time contributes to the [Openness](http://theapacheway.com/open/#:~:text=Openness%20allows%20new%20users%20the,must%20happen%20in%20the%20open.) of the Apache Arrow project.
   
   Then could you also rename pull request title in the following format?
   
       ARROW-${JIRA_ID}: [${COMPONENT}] ${SUMMARY}
   
   or
   
       MINOR: [${COMPONENT}] ${SUMMARY}
   
   See also:
   
     * [Other pull requests](https://github.com/apache/arrow/pulls/)
     * [Contribution Guidelines - How to contribute patches](https://arrow.apache.org/docs/developers/contributing.html#how-to-contribute-patches)
   


-- 
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] JabariBooker closed pull request #12517: [C++] Cast between fixed size list type and variable size list

Posted by GitBox <gi...@apache.org>.
JabariBooker closed pull request #12517:
URL: https://github.com/apache/arrow/pull/12517


   


-- 
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] github-actions[bot] commented on pull request #12517: ARROW-15455: [C++] Cast between fixed size list type and variable size list

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #12517:
URL: https://github.com/apache/arrow/pull/12517#issuecomment-1051370891


   https://issues.apache.org/jira/browse/ARROW-15455


-- 
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] edponce commented on a change in pull request #12517: ARROW-15455: [C++] Cast between fixed size list type and variable size list

Posted by GitBox <gi...@apache.org>.
edponce commented on a change in pull request #12517:
URL: https://github.com/apache/arrow/pull/12517#discussion_r818100195



##########
File path: cpp/src/arrow/compute/kernels/scalar_cast_nested.cc
##########
@@ -84,6 +84,13 @@ struct CastList {
                                                       options, ctx->exec_context()));
 
         out_scalar->is_valid = true;
+
+        if (is_fixed_size_list_type<DestType>::value) {

Review comment:
       Normally, we do not use SFINAE aliases for declarative runtime checks
   ```c++
   if (out_scalar->type->id() == Type::FIXED_SIZE_LIST) { ... }
   ```
   
   Nevertheless, the code is not reaching the Scalar block (from pyarrow) bc Scalar cast does not works (see [JIRA comment](https://issues.apache.org/jira/browse/ARROW-15455?focusedCommentId=17500385&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17500385)).




-- 
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] edponce commented on a change in pull request #12517: ARROW-15455: [C++] Cast between fixed size list type and variable size list

Posted by GitBox <gi...@apache.org>.
edponce commented on a change in pull request #12517:
URL: https://github.com/apache/arrow/pull/12517#discussion_r818100195



##########
File path: cpp/src/arrow/compute/kernels/scalar_cast_nested.cc
##########
@@ -84,6 +84,13 @@ struct CastList {
                                                       options, ctx->exec_context()));
 
         out_scalar->is_valid = true;
+
+        if (is_fixed_size_list_type<DestType>::value) {

Review comment:
       Normally, we do not use SFINAE/template-related aliases for declarative runtime checks
   ```c++
   if (out_scalar->type->id() == Type::FIXED_SIZE_LIST) { ... }
   ```
   
   Nevertheless, the code is not reaching the Scalar block (from pyarrow) bc Scalar cast does not works (see [JIRA comment](https://issues.apache.org/jira/browse/ARROW-15455?focusedCommentId=17500385&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17500385)).




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