julianhyde commented on code in PR #3495:
URL: https://github.com/apache/calcite/pull/3495#discussion_r1408084580
##########
core/src/main/java/org/apache/calcite/rel/metadata/BuiltInMetadata.java:
##########
@@ -83,9 +83,9 @@ public interface UniqueKeys extends Metadata {
* represented as an {@link org.apache.calcite.util.ImmutableBitSet}, where
* each bit position represents a 0-based output column ordinal.
*
- * <p>Note that a key plus other columns is still unique. Therefore a table
- * with all columns unique has a unique key consisting of the empty set.
- * This is the case with all single-row tables.
+ * <p>Note that a unique key plus other columns is still unique.
+ * Conversely, all columns are unique in a table with a unique key
+ * consisting of the empty set, as is the case for all single-row tables.
Review Comment:
Still doesn't make sense. If `()` is declared as unique key of a table than
the table cannot have more than one row. Such a table is pretty much useless.
I would not expect 'normal' tables to declare `()` as their unique key.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]