-
Notifications
You must be signed in to change notification settings - Fork 48
fix: Extend row hash to 128 bits to guarantee unique row id #632
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
Conversation
cbfac1c
to
02c0f32
Compare
Looks like a test flake. Will raise an issue with our on-call this week. |
bigframes/session/__init__.py
Outdated
@@ -832,9 +834,13 @@ def _read_gbq_table( | |||
ordering=ordering, | |||
) | |||
else: | |||
array_value = self._create_total_ordering(table_expression) | |||
array_value = self._create_total_ordering( | |||
table_expression, table_size=table.num_rows |
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.
Could you please try this with a VIEW type table? I don't think num_rows
is always populated.
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.
yes, this won't be populated for views or potentially with streaming inserts. defaulting to assume table is large and need 128 bits.
bigframes/session/__init__.py
Outdated
@@ -1455,10 +1461,18 @@ def _create_empty_temp_table( | |||
def _create_total_ordering( | |||
self, | |||
table: ibis_types.Table, | |||
table_size: int, |
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.
Likewise, we might need to handle missing size here.
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.
added.
eedd123
to
318609e
Compare
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕