We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
datetime
row_filter
in the following row_filter in a scan() call,
scan()
row_filter=And( GreaterThanOrEqual("timestamp_received", start_time), LessThan("timestamp_received", end_time), ),
the start_time and end_time variables are datetime objects. When running a scan with that row_filter I end up with the error of
start_time
end_time
scan
TypeError: Invalid literal value: datetime.datetime(2024, 11, 13, 11, 35, 28, 730000, tzinfo=datetime.timezone.utc)
Instead, the expressions should correctly cast the datetime object instead of expecting an isoformat string, which is the current behavior
isoformat
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue! I believe this is the relevant code
iceberg-python/pyiceberg/expressions/literals.py
Lines 122 to 149 in dbcf65b
Looks like we don't take into account python's datetime object.
cc @Fokko do you have context around this?
Sorry, something went wrong.
No branches or pull requests
Feature Request / Improvement
in the following
row_filter
in ascan()
call,the
start_time
andend_time
variables aredatetime
objects. When running ascan
with thatrow_filter
I end up with the error ofInstead, the expressions should correctly cast the
datetime
object instead of expecting anisoformat
string, which is the current behaviorThe text was updated successfully, but these errors were encountered: