Skip to content

[vectorized](function) suppoort date_trunc function truncate week mode#18334

Merged
yiguolei merged 1 commit intoapache:masterfrom
zhangstar333:date_trunc_week
Apr 4, 2023
Merged

[vectorized](function) suppoort date_trunc function truncate week mode#18334
yiguolei merged 1 commit intoapache:masterfrom
zhangstar333:date_trunc_week

Conversation

@zhangstar333
Copy link
Contributor

Proposed changes

support date_trunc could truncate week eg:
select date_trunc('2023-4-3 19:28:30', 'week');

Issue Number: close #xxx

Problem summary

Describe your changes.

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-actions github-actions bot added area/sql/function Issues or PRs related to the SQL functions area/vectorization kind/docs Categorizes issue or PR as related to documentation. labels Apr 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2023

clang-tidy review says "All clean, LGTM! 👍"

@zhangstar333
Copy link
Contributor Author

run buildall

Copy link
Contributor

@yiguolei yiguolei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yiguolei yiguolei merged commit 50e6c42 into apache:master Apr 4, 2023
Mryange pushed a commit to Mryange/doris that referenced this pull request Apr 4, 2023
apache#18334)

support date_trunc could truncate week eg:
select date_trunc('2023-4-3 19:28:30', 'week');
gnehil pushed a commit to gnehil/doris that referenced this pull request Apr 21, 2023
apache#18334)

support date_trunc could truncate week eg:
select date_trunc('2023-4-3 19:28:30', 'week');
yuxuan-luo pushed a commit to yuxuan-luo/doris that referenced this pull request Jun 7, 2023
apache#18334)

support date_trunc could truncate week eg:
select date_trunc('2023-4-3 19:28:30', 'week');

(cherry picked from commit 50e6c42)
lide-reed pushed a commit that referenced this pull request Jun 7, 2023
#18334) (#20530)

support date_trunc could truncate week eg:
select date_trunc('2023-4-3 19:28:30', 'week');

(cherry picked from commit 50e6c42)

Co-authored-by: zhangstar333 <87313068+zhangstar333@users.noreply.github.com>
mongo360 pushed a commit to mongo360/doris that referenced this pull request Jul 12, 2023
apache#18334) (apache#20530)

support date_trunc could truncate week eg:
select date_trunc('2023-4-3 19:28:30', 'week');

(cherry picked from commit 50e6c42)

Co-authored-by: zhangstar333 <87313068+zhangstar333@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sql/function Issues or PRs related to the SQL functions area/vectorization kind/docs Categorizes issue or PR as related to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants