You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "andygrove (via GitHub)" <gi...@apache.org> on 2024/11/12 16:14:55 UTC

[I] Improve error message for unsupported cast between struct and other types [arrow-rs]

andygrove opened a new issue, #6724:
URL: https://github.com/apache/arrow-rs/issues/6724

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for this feature, in addition to  the *what*)
   -->
   
   In general, we have detailed error messages for unsupported casts, such as:
   
   ```rust
   _ => Err(ArrowError::CastError(format!(
       "Casting from {from_type:?} to {to_type:?} not supported"
   ```
   
   However, the messages for casting between struct and non-struct types does not provide information on the types that were attempted to be cast, making it harder to debug issues.
   
   ```rust
   (Struct(_), _) => Err(ArrowError::CastError(
       "Cannot cast from struct to other types except struct".to_string(),
   )),
   (_, Struct(_)) => Err(ArrowError::CastError(
       "Cannot cast to struct from other types except struct".to_string(),
   )),
   ```
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   I would like the error message to follow the same format as other unsupported casts:
   
   ```rust
   "Casting from {from_type:?} to {to_type:?} not supported"
   ```
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


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

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


Re: [I] Improve error message for unsupported cast between struct and other types [arrow-rs]

Posted by "Silverviles (via GitHub)" <gi...@apache.org>.
Silverviles commented on issue #6724:
URL: https://github.com/apache/arrow-rs/issues/6724#issuecomment-2471016216

   take


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


Re: [I] Improve error message for unsupported cast between struct and other types [arrow-rs]

Posted by "Silverviles (via GitHub)" <gi...@apache.org>.
Silverviles commented on issue #6724:
URL: https://github.com/apache/arrow-rs/issues/6724#issuecomment-2564594062

   @takaebato Please go ahead. You can work on it.


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


Re: [I] Improve error message for unsupported cast between struct and other types [arrow-rs]

Posted by "Silverviles (via GitHub)" <gi...@apache.org>.
Silverviles commented on issue #6724:
URL: https://github.com/apache/arrow-rs/issues/6724#issuecomment-2471007436

   Hello! I'd like to compete this task.


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


Re: [I] Improve error message for unsupported cast between struct and other types [arrow-rs]

Posted by "Silverviles (via GitHub)" <gi...@apache.org>.
Silverviles commented on issue #6724:
URL: https://github.com/apache/arrow-rs/issues/6724#issuecomment-2471045554

   take


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


Re: [I] Improve error message for unsupported cast between struct and other types [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #6724:
URL: https://github.com/apache/arrow-rs/issues/6724#issuecomment-2615470207

   `label_issue.py` automatically added labels {'arrow'} from #6919


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


Re: [I] Improve error message for unsupported cast between struct and other types [arrow-rs]

Posted by "takaebato (via GitHub)" <gi...@apache.org>.
takaebato commented on issue #6724:
URL: https://github.com/apache/arrow-rs/issues/6724#issuecomment-2564569612

   @Silverviles 
   Are you working on this? I'm thinking of tackling it :)


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


Re: [I] Improve error message for unsupported cast between struct and other types [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #6724: Improve error message for unsupported cast between struct and other types
URL: https://github.com/apache/arrow-rs/issues/6724


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