From 88c49651ecc9d55967f5c8056352de0f0981989f Mon Sep 17 00:00:00 2001 From: toms <94617906+Toms1999@users.noreply.github.com> Date: Thu, 13 Jun 2024 17:36:16 +0800 Subject: [PATCH] Fix(mysql): delete redundant keywords (#3646) * Feat(bigquery,presto): improve transpilation of INTERVAL (plural to singular) * Feat(bigquery,presto): improve transpilation of INTERVAL (plural to singular) * Feat(bigquery,presto): improve transpilation of INTERVAL (plural to singular) * fix(doris) , mysql group_concat function different doris , it is not support separator keyword * fix(doris) , mysql group_concat function different doris , it is not support separator keyword * fix(doris) , mysql group_concat function different doris , it is not support separator keyword * fix(doris) , mysql group_concat function different doris , it is not support separator keyword * fix(doris) , mysql group_concat function different doris , it is not support separator keyword * Update tests/dialects/test_doris.py * Update sqlglot/dialects/doris.py * Update sqlglot/dialects/doris.py * Update sqlglot/dialects/doris.py * fix(presto to hive) , TIMESTAMP_TRUNC function to trunc function * fix(presto to hive) , TIMESTAMP_TRUNC function to trunc function * fix(presto keyword) DIV * fix (mysql) delete redundant keywords * github --------- Co-authored-by: Jo <46752250+georgesittas@users.noreply.github.com> --- sqlglot/dialects/mysql.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/sqlglot/dialects/mysql.py b/sqlglot/dialects/mysql.py index 67a3270964..27f4b86ce7 100644 --- a/sqlglot/dialects/mysql.py +++ b/sqlglot/dialects/mysql.py @@ -1093,29 +1093,6 @@ class Generator(generator.Generator): "xor", "year_month", "zerofill", - "cume_dist", - "dense_rank", - "empty", - "except", - "first_value", - "grouping", - "groups", - "intersect", - "json_table", - "lag", - "last_value", - "lateral", - "lead", - "nth_value", - "ntile", - "of", - "over", - "percent_rank", - "rank", - "recursive", - "row_number", - "system", - "window", } def array_sql(self, expression: exp.Array) -> str: