Skip to content

[CALCITE-6724] MockTable support for multiple (individual & composite) keys#4083

Merged
zabetak merged 1 commit intoapache:mainfrom
zabetak:CALCITE-6724
Dec 10, 2024
Merged

[CALCITE-6724] MockTable support for multiple (individual & composite) keys#4083
zabetak merged 1 commit intoapache:mainfrom
zabetak:CALCITE-6724

Conversation

@zabetak
Copy link
Copy Markdown
Member

@zabetak zabetak commented Dec 10, 2024

MockTable currently allows only one key to be specified; the key can be either simple or composite. In real scenarios though a table can have multiple keys.

  1. Add MockTable#addKey API to explicitly support multiple (individual & composite) keys.
  2. Modify MockTable#addColumn to create individual keys when isKey is true. There is a slight change in behavior since when the method is called multiple times for the same table it will now create multiple simple keys instead of one composite.

…) keys

MockTable currently allows only one key to be specified; the key can be either simple or composite. In real scenarios though a table can have multiple keys.
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@ILuffZhe ILuffZhe left a comment

Choose a reason for hiding this comment

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

LGTM!

@zabetak zabetak merged commit e440e51 into apache:main Dec 10, 2024
@zabetak zabetak deleted the CALCITE-6724 branch December 10, 2024 14:15
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

Successfully merging this pull request may close these issues.

2 participants