Skip to content
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

load_table_changes_as_pandas with timestamps #488

Open
john-grassroots opened this issue May 20, 2024 · 0 comments
Open

load_table_changes_as_pandas with timestamps #488

john-grassroots opened this issue May 20, 2024 · 0 comments

Comments

@john-grassroots
Copy link

I'm able to call load_table_changes_as_pandas fine when passing in version numbers but receive errors when attempting to pass timestamps (or stringified timestamp as the api seems to expect).

When passing in timestamps I see the following error message: quote_from_bytes() expected bytes

# relevant date/timestamp code....

from datetime import datetime as dtm

start = dtm(2024, 5, 17, 17, 27, 48, 0).timestamp()
end = dtm.timestamp(dtm.now())

# call load_table_changes_as_pandas
# don't set start/end versions
# do set start/end timestamp

When converting timestamps to string as api seems to expect, I receive the following...

{ 'error_code': 'BAD_REQUEST',
'message': "Invalid startingTimestamp: Text '1715988468.0' could not be "
'parsed at index 0.'}

# relevant date/timestamp code....

from datetime import datetime as dtm

start = str(dtm(2024, 5, 17, 17, 27, 48, 0).timestamp())
end = str(dtm.timestamp(dtm.now()))

# call load_table_changes_as_pandas
# don't set start/end versions
# do set start/end timestamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant