-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
ALTER TABLE visits_order ADD PROJECTION user_name_projection (SELECT * ORDER BY user_name); | ||
ALTER TABLE visits_order | ||
ADD PROJECTION IF NOT EXISTS user_name_projection | ||
(SELECT * GROUP BY user_name ORDER BY user_name) AFTER a.user_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
-- Origin SQL: | ||
ALTER TABLE visits_order ADD PROJECTION user_name_projection (SELECT * ORDER BY user_name); | ||
ALTER TABLE visits_order | ||
ADD PROJECTION IF NOT EXISTS user_name_projection | ||
(SELECT * GROUP BY user_name ORDER BY user_name) AFTER a.user_id; | ||
|
||
|
||
-- Format SQL: | ||
ALTER TABLE visits_order | ||
ADD PROJECTION | ||
user_name_projection (SELECT * ORDER BY user_name); | ||
ADD PROJECTION IF NOT EXISTS user_name_projection (SELECT * GROUP BY user_name ORDER BY user_name) AFTER a.user_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters