-
Notifications
You must be signed in to change notification settings - Fork 43
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
1 parent
be228e3
commit 9bbc9f9
Showing
1 changed file
with
142 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
-- | ||
-- Author: Hari Sekhon | ||
-- Date: 2020-01-01 14:37:21 +0000 (Wed, 01 Jan 2020) | ||
-- | ||
-- https://github.com/harisekhon/devops-perl-tools | ||
-- | ||
-- License: see accompanying LICENSE file | ||
-- | ||
|
||
-- List of keywords to re-case for Presto | ||
|
||
-- used by prestocase.pl | ||
|
||
-- Regex one per line of keywords to re-case by literal replacement | ||
-- whitespace is converted to \s+ for matching so this list can look cleaner | ||
-- leading/trailing whitespace is automatically trimmed | ||
-- don't specify functions such as COUNT() with brackets since brackets are added as one of several possible keyword boundaries | ||
|
||
-- https://prestosql.io/docs/current/language/reserved.html | ||
ALTER | ||
AND | ||
AS | ||
BETWEEN | ||
BY | ||
CASE | ||
CAST | ||
CONSTRAINT | ||
CREATE | ||
CROSS | ||
CUBE | ||
CURRENT_DATE | ||
CURRENT_PATH | ||
CURRENT_ROLE | ||
CURRENT_TIME | ||
CURRENT_TIMESTAMP | ||
CURRENT_USER | ||
DEALLOCATE | ||
DELETE | ||
DESCRIBE | ||
DISTINCT | ||
DROP | ||
ELSE | ||
END | ||
ESCAPE | ||
EXCEPT | ||
EXECUTE | ||
EXISTS | ||
EXTRACT | ||
FALSE | ||
FOR | ||
FROM | ||
FULL | ||
GROUP | ||
GROUPING | ||
HAVING | ||
IN | ||
INNER | ||
INSERT | ||
INTERSECT | ||
INTO | ||
IS | ||
JOIN | ||
LEFT | ||
LIKE | ||
LOCALTIME | ||
LOCALTIMESTAMP | ||
NATURAL | ||
NORMALIZE | ||
NOT | ||
NULL | ||
ON | ||
OR | ||
ORDER | ||
OUTER | ||
PREPARE | ||
RECURSIVE | ||
RIGHT | ||
ROLLUP | ||
SELECT | ||
TABLE | ||
THEN | ||
TRUE | ||
UESCAPE | ||
UNION | ||
UNNEST | ||
USING | ||
VALUES | ||
WHEN | ||
WHERE | ||
WITH | ||
|
||
-- https://prestosql.io/docs/current/sql.html | ||
ALTER SCHEMA | ||
ALTER TABLE | ||
ALTER VIEW | ||
ANALYZE | ||
CALL | ||
COMMENT | ||
COMMIT | ||
CREATE ROLE | ||
CREATE SCHEMA | ||
CREATE TABLE | ||
CREATE TABLE AS | ||
CREATE VIEW | ||
DEALLOCATE PREPARE | ||
DELETE | ||
DESCRIBE | ||
DESCRIBE INPUT | ||
DESCRIBE OUTPUT | ||
DROP ROLE | ||
DROP SCHEMA | ||
DROP TABLE | ||
DROP VIEW | ||
EXECUTE | ||
EXPLAIN | ||
EXPLAIN ANALYZE | ||
GRANT | ||
GRANT ROLES | ||
INSERT | ||
PREPARE | ||
RESET SESSION | ||
REVOKE | ||
REVOKE ROLES | ||
ROLLBACK | ||
SELECT | ||
SET ROLE | ||
SET SESSION | ||
SHOW CATALOGS | ||
SHOW COLUMNS | ||
SHOW CREATE TABLE | ||
SHOW CREATE VIEW | ||
SHOW FUNCTIONS | ||
SHOW GRANTS | ||
SHOW ROLE GRANTS | ||
SHOW ROLES | ||
SHOW SCHEMAS | ||
SHOW SESSION | ||
SHOW STATS | ||
SHOW TABLES | ||
START TRANSACTION | ||
USE | ||
VALUES |