You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "kane0409 (via GitHub)" <gi...@apache.org> on 2023/06/30 12:27:34 UTC

[GitHub] [doris] kane0409 opened a new issue, #21396: [Enhancement] 指定分区列时,可以在分区列上使用函数

kane0409 opened a new issue, #21396:
URL: https://github.com/apache/doris/issues/21396

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Description
   
   分区列一般用日期字段,但表中没有日期字段,只有datatime类型的时间字段,yyyy-MM-dd HH:mm:ss 格式,这就造成无法直接使用这个时间字段做分区,建议增强 PARTITION BY RANGE(date) 功能,可以对分区列字段使用函数,如 PARTITION BY RANGE(to_date(create_time)),直接将时间字段转为日期字段,且作为分区字段使用。
   
   
   ### Solution
   
   _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)
   


-- 
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-unsubscribe@doris.apache.org.apache.org

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


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