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

[GitHub] [arrow-datafusion] comphead commented on a diff in pull request #6522: fix: error instead of panic when date_bin interval is 0

comphead commented on code in PR #6522:
URL: https://github.com/apache/arrow-datafusion/pull/6522#discussion_r1214657767


##########
datafusion/physical-expr/src/datetime_expressions.rs:
##########
@@ -522,6 +522,13 @@ fn date_bin_impl(
 
     let (stride, stride_fn) = stride.bin_fn();
 
+    // Return error if stride is 0
+    if stride == 0 {

Review Comment:
   > Thanks @comphead and @alamb, I have addressed your comments.
   > 
   > @comphead : we supported interval `month` and `year` interval in [this PR](https://github.com/apache/arrow-datafusion/pull/5982)
   
   Thanks I'll check that, PG doesn't support strides as  months and larger, need to check what is the reason for that, as we consider PG behavior  as an example



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