Skip to content

Commit

Permalink
added .recase/presto_keywords.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jan 1, 2020
1 parent be228e3 commit 9bbc9f9
Showing 1 changed file with 142 additions and 0 deletions.
142 changes: 142 additions & 0 deletions .recase/presto_keywords.conf
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

0 comments on commit 9bbc9f9

Please sign in to comment.