Skip to content

Commit

Permalink
improve join snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
camilesing committed Jul 21, 2023
1 parent 7ab5db1 commit 2efdb21
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,21 @@ example:

### 1.4 Snippets
snippets keywords:
- create
- select
- insert
- join

#### create
![](images/create_snippets.gif)
#### select
![](images/select_snippets.gif)
![](images/select_snippets_v2.gif)
#### insert
![](images/insert_snippets.gif)

#### join
![](images/join_snippets.gif)

### 1.5 Code Format
Select your FlinkSQL code and press ```Alt+Shift+f```.

Expand Down
Binary file added images/join_snippets.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/select_snippets.gif
Binary file not shown.
Binary file added images/select_snippets_v2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"Join": {
"prefix": "join",
"body": [
"join table_2 FOR SYSTEM_TIME AS OF table_1.proctime as r on table_1.ip = r.ip"
"${1|LEFT,RIGHT,INNER|} JOIN ${2:table_name} FOR SYSTEM_TIME AS OF ${3:table_name}.proctime as r on ${4:table_name}.${5:field} = r.${6:field}"
]
}
}

0 comments on commit 2efdb21

Please sign in to comment.