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/06/14 08:50:48 UTC

[GitHub] [iceberg] Cheers0606 opened a new issue, #5031: How can I update the data in iceberg?

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

   I set identityfieldid in the iceberg table as follows 
   ```java
   Set<Integer> identifierFieldIds = ImmutableSet.of(1);
   Schema SCHEMA = new Schema(
       Arrays.asList(
           Types.NestedField.of(1,false,"ID",Types.IntegerType.get()),
           ....
   ),null,identifierFieldIds);
   ...
   hiveCatalog.buildTable(tableIdentifier,Schema)
       .withProperty(TableProperties.UPSERT_MODE_ENABLED, "true")
       .create();
   ```
   
    and then write two pieces of data into this table, as follows
   
   ```sql
   insert into hive_prod.testdb.testtable values (1,"test"),(1,"test");
   ```
   
    Finally, there are two pieces of data when querying the data
   
   ```sql
   select * from hive_prod.testdb.testtable;
   ID, NAME
   1,test1
   1,test1
   ```
   
   How can I update the data 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.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


[GitHub] [iceberg] Cheers0606 closed issue #5031: How can I update the data in iceberg?

Posted by GitBox <gi...@apache.org>.
Cheers0606 closed issue #5031: How can I update the data in iceberg?
URL: https://github.com/apache/iceberg/issues/5031


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