You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/08/15 13:55:10 UTC
[GitHub] [iceberg] kris-sea commented on issue #5069: Support create table `PRIMARY KEY` column via Spark sql?
kris-sea commented on issue #5069:
URL: https://github.com/apache/iceberg/issues/5069#issuecomment-1215041789
I guess @felixYyu is trying to create an iceberg table by executing flink SQL `PRIMARY KEY(col) NOT ENFORCED`, and trying to add few records into the iceberg table by spark SQL, right ?
In this case, the current `PRIMARY KEY` definitions from flink sql just add the equality keys into the iceberg table metadata. And for iceberg table's equality key fields, the engines won't enforce the uniqueness. that's why we don't see the uniqueness rows after we inserted few records by spark SQL.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org