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

[GitHub] [arrow-datafusion] jhorstmann commented on issue #7344: Internal error: The "character_length" function can only accept strings

jhorstmann commented on issue #7344:
URL: https://github.com/apache/arrow-datafusion/issues/7344#issuecomment-1689473071

   I'm wondering if an implicit cast is really the right solution here. Maybe a better solution would be to declare the schema / override the type in the `CREATE TABLE` statement.
   
   Some other databases also have `CHAR_LENGTH` return the number of bytes on binary inputs: [snowflake LENGTH function](https://docs.snowflake.com/en/sql-reference/functions/length), [Databricks CHARACTER_LENGTH](https://docs.databricks.com/en/sql/language-manual/functions/character_length.html)


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