datenhahn commented on issue #36830:
URL: https://github.com/apache/doris/issues/36830#issuecomment-2210556341
Ok, just a word of warning: I think it was already forbidden currently, but
I think the misfortunate combination of the table schema having a boolean as
first value and no key given at all (which then will determine a duplicate key
automatically) enable this schema to sneak through the validation.
Please make sure, that indeed this special case (No key given, and first
field not usable as key) also is covered by the check (I didn't work myself
into the codebase enough to determine if your fix will cover it or not).
Once the fix has made into a selectdb release we will retest it anyway and I
will keep you posted, but maybe you can recheck your fix if it covers the
special case as well.
```
CREATE TABLE reproduce_bug
(
some_value BOOLEAN,
value1 VARIANT,
value2 VARIANT,
value3 VARIANT,
value4 VARIANT,
value5 VARIANT,
value6 VARIANT,
value7 VARIANT
)
DISTRIBUTED BY HASH(some_value) BUCKETS AUTO;
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]