-
Notifications
You must be signed in to change notification settings - Fork 413
Accept date in literal #1618
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
Accept date in literal #1618
Conversation
kevinjqliu
left a comment
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.
Thanks for the PR! Looks like theres a CI issue, Fokko's suggestion might help resolve it.
Could you also add a test for this change? heres an example for TimestampLiteral
iceberg-python/tests/expressions/test_literals.py
Lines 909 to 910 in dfbee4b
| def test_literal_from_datetime() -> None: | |
| assert isinstance(literal(datetime.datetime.now()), TimestampLiteral) |
Co-authored-by: Fokko Driesprong <fokko@apache.org>
|
@TennyZhuang Can you run |
kevinjqliu
left a comment
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.
aside from the lint issue, LGTM!
|
I have no idea why the CI failed again. |
|
@TennyZhuang That looks unrelated to your PR, I've restarted the job |
|
Thanks @TennyZhuang for adding this, and thanks @kevinjqliu for the review 🙌 |
No description provided.