-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port arrow_typeof
to datafusion-function
#9524
Conversation
The CI fails because https://github.com/apache/arrow-datafusion/pull/9388/files#r1506662726, |
Update: I think changing the test case now and revise it later is better. Because now it corresponds to the expected behavior since hint for UDF is not supported. And after hint is supported, we will revise more test cases besides this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much @yyy1000 -- this looks good to me
@@ -15,8 +15,6 @@ | |||
// specific language governing permissions and limitations | |||
// under the License. | |||
|
|||
//! Encoding expressions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -479,7 +479,7 @@ CREATE TABLE test( | |||
(3, 30); | |||
|
|||
# Scalar function | |||
statement error Did you mean 'arrow_typeof'? | |||
statement error Invalid function 'arrowtypeof' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is tracked by #9392
@SteveLauC has a PR up for it #9407 which hopefully will land shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#9407 is ready to go -- I think once we merge that one we can revert this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -31,7 +31,7 @@ the `arrow_typeof` function. For example: | |||
```sql | |||
select arrow_typeof(interval '1 month'); | |||
+-------------------------------------+ | |||
| arrowtypeof(IntervalYearMonth("1")) | | |||
| arrow_typeof(IntervalYearMonth("1")) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I took the liberty of merging this PR up from main and resolving conflicts (also I haven't been coding much this week and I wanted some excuse to do so) |
The Ci failure seems unrelated https://github.com/apache/arrow-datafusion/actions/runs/8221664632/job/22482282908?pr=9524 I will rerun the windows test |
I had meet this error several times, but it is not reproducible. It only appears at the first time after compilation, but not always 😕 |
I think it is likely a intermittent failure related to the test output not being deterministic (like maybe it depends on the order of thread execution or something). It is probably worth a ticket to track it (but I am about out of time today) |
Thanks! @alamb |
arrow_typeof
to datafusion-function
I resolved the conflict with main branch :) |
We are sooooo close 🙏 |
Thanks again @yyy1000 |
Which issue does this PR close?
Related #9285.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?