You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "FWLamb (via GitHub)" <gi...@apache.org> on 2023/10/30 02:01:38 UTC

[I] Does the Java API support primary keys for creating tables [iceberg]

FWLamb opened a new issue, #8950:
URL: https://github.com/apache/iceberg/issues/8950

   ### Query engine
   
   Flink 
   
   ### Question
   
   Does the Java API support primary keys for creating tables?
   
   I hope to use the Java API to create tables corresponding to the following SQL statements. How can I implement this?
   
   CREATE TABLE `hive_catalog`.`default`.`sample` (
       id BIGINT COMMENT 'unique id',
       data STRING NOT NULL,
       PRIMARY KEY(`id`) NOT ENFORCED
   ) WITH ('format-version'='2');
   


-- 
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.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


Re: [I] Does the Java API support primary keys for creating tables [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8950: Does the Java API support primary keys for creating tables
URL: https://github.com/apache/iceberg/issues/8950


-- 
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


Re: [I] Does the Java API support primary keys for creating tables [iceberg]

Posted by "FWLamb (via GitHub)" <gi...@apache.org>.
FWLamb commented on issue #8950:
URL: https://github.com/apache/iceberg/issues/8950#issuecomment-1800866028

   > primary key in flink is identifier fields in iceberg
   
   @Zhangg7723 Can you show me a simple example of creating a primary key table? Thank you.


-- 
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


Re: [I] Does the Java API support primary keys for creating tables [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on issue #8950:
URL: https://github.com/apache/iceberg/issues/8950#issuecomment-1786574081

   @FWLamb you might want to take a look at https://tabular.io/blog/java-api-part-1/ to achieve that


-- 
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


Re: [I] Does the Java API support primary keys for creating tables [iceberg]

Posted by "Zhangg7723 (via GitHub)" <gi...@apache.org>.
Zhangg7723 commented on issue #8950:
URL: https://github.com/apache/iceberg/issues/8950#issuecomment-1798091532

   primary key in flink is identifier fields in iceberg


-- 
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


Re: [I] Does the Java API support primary keys for creating tables [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8950:
URL: https://github.com/apache/iceberg/issues/8950#issuecomment-2380308477

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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


Re: [I] Does the Java API support primary keys for creating tables [iceberg]

Posted by "Zhangg7723 (via GitHub)" <gi...@apache.org>.
Zhangg7723 commented on issue #8950:
URL: https://github.com/apache/iceberg/issues/8950#issuecomment-1806785206

   Schema schema = new Schema(columns, identifierFieldIds)


-- 
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


Re: [I] Does the Java API support primary keys for creating tables [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8950:
URL: https://github.com/apache/iceberg/issues/8950#issuecomment-2412570398

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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