Skip to content

fix(BigTable): Fixes the issue with same qualifier across families.#9921

Merged
Rishabh-V merged 1 commit intogoogleapis:mainfrom
Rishabh-V:bigtable_9870
Mar 1, 2023
Merged

fix(BigTable): Fixes the issue with same qualifier across families.#9921
Rishabh-V merged 1 commit intogoogleapis:mainfrom
Rishabh-V:bigtable_9870

Conversation

@Rishabh-V
Copy link
Contributor

Closes #9870

I have also added a test case to test this scenario. I will paste the link of that PR in the comment.

@Rishabh-V
Copy link
Contributor Author

Conformance Test PR: googleapis/conformance-tests#74

}

if (chunk.Qualifier != null && chunk.Qualifier != owner._currentCell.Column?.Qualifier)
if (chunk.Qualifier != null && (chunk.Qualifier != owner._currentCell.Column?.Qualifier || familyNameChanged))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should happen if chunk.Qualifier is null, but the family name has changed? (I don't know enough about the underlying mechanics to know if that's something we should handle.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that this if condition determines if the current cell should be associated with a new column or not. If the family has changed and qualifier is null, it should be an invalid scenario as per this test case that states that a new column family must have a qualifier. https://github.com/Rishabh-V/conformance-tests/blob/main/bigtable/v2/readrows.json#L50

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jon. I will wait for Igor to have a look as well. Meanwhile, conformance tests with new test cases are failing, so that may require some more time to be merged.

@Rishabh-V Rishabh-V merged commit 137e40f into googleapis:main Mar 1, 2023
@Rishabh-V Rishabh-V deleted the bigtable_9870 branch March 1, 2023 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the Bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only data for one column is returned when reading row with same qualifier in multiple families

2 participants