bhasudha commented on code in PR #9952: URL: https://github.com/apache/hudi/pull/9952#discussion_r1396790547
########## website/docs/sql_dml.md: ########## @@ -199,7 +199,52 @@ You can control the behavior of these operations using various configuration opt ## Flink -Flink SQL also provides several Data Manipulation Language (DML) actions for interacting with Hudi tables. All these operations are already -showcased in the [Flink Quickstart](/docs/flink-quick-start-guide). +Flink SQL provides several Data Manipulation Language (DML) actions for interacting with Hudi tables. These operations allow you to insert, update and delete data from your Hudi tables. Let's explore them one by one. +### Insert Data +You can utilize the INSERT INTO statement to incorporate data into a Hudi table using Flink SQL. Here are a few illustrative examples: + +```sql +INSERT INTO <table> +SELECT <columns> FROM <source>; +``` + +Examples: + +```sql +-- Insert into a Hudi table +INSERT INTO hudi_table SELECT 1, 'a1', 20; +``` + +If the `write.operation` is 'upsert,' the INSERT INTO statement will not only insert new records but also update existing rows with the same record key. Review Comment: Add an example on how to set this option ? -- 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]
