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

[I] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

   **Describe the bug**
   when cast string like '19990819' to Date32, it will give a error, but for '1999-08-19' it secceed
   
   **To Reproduce**
   In arrow-datafusion
   For a date column run a query with the date in string format 'yyyymmdd' as shown below
   ```
   --this query fails
   select * from orders where o_orderdate = '19961006'
   ```
   it get 
   ```
   Arrow error: Cast error: Cannot cast string '19961006' to value of Date32 type
   ```
   
   **Expected behavior**
   This should return the correct result and not fail
   
   
   **Additional context**


-- 
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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

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


-- 
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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

   @alamb hey! the bug for [https://github.com/apache/arrow-datafusion/issues/7465](https://github.com/apache/arrow-datafusion/issues/7465) is belong to this, maybe this issue can be assigned to me and i will fix 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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

   @alamb hey!


-- 
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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

   I see no issue with this


-- 
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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

   Assigned -- thanks @Tangruilin  
   
   @tustvold  can you confirm this is a reasonable change to add to arrow-rs? If not, I think we should add the code to DataFusion instead


-- 
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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

   @alamb @tustvold 


-- 
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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

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

   I have initiated a PR, thanks for review


-- 
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] cast format 'yyyymmdd' to Date32 give a error [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed issue #5044: cast format 'yyyymmdd'  to Date32 give a error
URL: https://github.com/apache/arrow-rs/issues/5044


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