Stamatis Zampetakis created CALCITE-6724:
--------------------------------------------
Summary: MockTable support for multiple (individual & composite)
keys
Key: CALCITE-6724
URL: https://issues.apache.org/jira/browse/CALCITE-6724
Project: Calcite
Issue Type: Improvement
Components: testkit
Reporter: Stamatis Zampetakis
Assignee: Stamatis Zampetakis
Fix For: 1.39.0
[MockTable|https://github.com/apache/calcite/blob/c3478b9718718337c9ef290ab906be8754d15d03/testkit/src/main/java/org/apache/calcite/test/catalog/MockCatalogReader.java#L311]
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.
Consider a table about passengers that have a national id, a passport, and a
social security number. In the passenger example, all three columns can be
individual unique keys.
The goal of this ticket is to extend the MockTable API to support multiple keys
allowing more flexibility when writing tests.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)