weilai201 commented on issue #200:
URL: 
https://github.com/apache/doris-spark-connector/issues/200#issuecomment-2516050404

   > > ### Search before asking
   > > 
   > > * [x]   I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   > > 
   > > ### Version
   > > 1.3.1
   > > ### What's Wrong?
   > > doris-spark-connector无法将doris库中datetime类型数据在spark中转换为java 
Date或timestamp类型。目前统一转换为String类型,对于使用非常不方便!
   > > ### What You Expected?
   > > doris中的datetime类型转换为java中的Date或Timestamp类型
   > > ### How to Reproduce?
   > > _No response_
   > > ### Anything Else?
   > > _No response_
   > > ### Are you willing to submit PR?
   > > 
   > > * [ ]   Yes I am willing to submit a PR!
   > > 
   > > ### Code of Conduct
   > > 
   > > * [x]   I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   > 
   > 我也遇到同样的问题了,目前我临时的解决办法是调整了部分代码,rowBatch处理的时候把datetimev2转为timestamp, 
https://github.com/dingyufei615/doris-spark-connector/tree/support_datetimev2_to_timastamp
 新增了一个参数`doris.read.datetimev2.as.timestamp.enabled` ,设置为`true` 
即可,我当前使用的是Spark3.3 Scala2.12,目前测试使用没遇到问题。社区后面也说了会重构这部分,如果不着急的话可以等后续的版本。
   
   👍!我目前也是通过修改源码做了支持!期望你的代码能够合并进去


-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to