Skip to content

Commit

Permalink
Docs: Uppercase SQL keywords in branching docs (#11172)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr authored Sep 20, 2024
1 parent b2b65df commit 4482565
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/docs/branching.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Create a table and insert some data:

```sql
CREATE TABLE db.table (id bigint, data string, col float);
INSERT INTO db.table values (1, 'a', 1.0), (2, 'b', 2.0), (3, 'c', 3.0);
INSERT INTO db.table VALUES (1, 'a', 1.0), (2, 'b', 2.0), (3, 'c', 3.0);
SELECT * FROM db.table;
1 a 1.0
2 b 2.0
Expand All @@ -148,11 +148,11 @@ SELECT * FROM db.table.branch_test_branch;
Modify the table's schema by dropping the `col` column and adding a new column named `new_col`:

```sql
ALTER TABLE db.table drop column col;
ALTER TABLE db.table DROP COLUMN col;

ALTER TABLE db.table add column new_col date;
ALTER TABLE db.table ADD COLUMN new_col date;

INSERT INTO db.table values (4, 'd', date('2024-04-04')), (5, 'e', date('2024-05-05'));
INSERT INTO db.table VALUES (4, 'd', date('2024-04-04')), (5, 'e', date('2024-05-05'));

SELECT * FROM db.table;
1 a NULL
Expand Down Expand Up @@ -195,7 +195,7 @@ When writing to the branch, the **table's schema** is used for validation:

```sql

INSERT INTO db.table.branch_test_branch values (6, 'e', date('2024-06-06')), (7, 'g', date('2024-07-07'));
INSERT INTO db.table.branch_test_branch VALUES (6, 'e', date('2024-06-06')), (7, 'g', date('2024-07-07'));

SELECT * FROM db.table.branch_test_branch;
6 e 2024-06-06
Expand Down

0 comments on commit 4482565

Please sign in to comment.