From 5fbfc4c283d8c1c781ac72d887373ea89e389876 Mon Sep 17 00:00:00 2001 From: Mohammed Ibrahim Date: Thu, 19 Oct 2023 09:43:29 -0400 Subject: [PATCH] rename method (#2390) --- .../relational/sqlQueryToString/sparkSQLExtension.pure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-sparksql/legend-engine-xt-relationalStore-sparksql-pure/src/main/resources/core_relational_sparksql/relational/sqlQueryToString/sparkSQLExtension.pure b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-sparksql/legend-engine-xt-relationalStore-sparksql-pure/src/main/resources/core_relational_sparksql/relational/sqlQueryToString/sparkSQLExtension.pure index a14c2f8aad0..9710caeebc9 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-sparksql/legend-engine-xt-relationalStore-sparksql-pure/src/main/resources/core_relational_sparksql/relational/sqlQueryToString/sparkSQLExtension.pure +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-sparksql/legend-engine-xt-relationalStore-sparksql-pure/src/main/resources/core_relational_sparksql/relational/sqlQueryToString/sparkSQLExtension.pure @@ -15,7 +15,7 @@ function <> meta::relational::functions::sqlQueryToString::s function <> meta::relational::functions::sqlQueryToString::sparkSQL::createDbExtensionForSparkSQL():DbExtension[1] { - let reservedWords = sybaseReservedWords(); + let reservedWords = sparkReservedWords(); let literalProcessors = getDefaultLiteralProcessors()->putAll(getLiteralProcessorsForSparkSQL()); let literalProcessor = {type:Type[1]| $literalProcessors->get(if($type->instanceOf(Enumeration), | Enum, | $type))->toOne()}; let dynaFuncDispatch = getDynaFunctionToSqlDefault($literalProcessor)->groupBy(d| $d.funcName)->putAll( @@ -304,7 +304,8 @@ function meta::relational::functions::sqlQueryToString::sparkSQL::loadValuesToDb ,| $l->meta::relational::functions::sqlQueryToString::default::loadValuesToDbTableDefault($dbConfig)); } -function <> meta::relational::functions::sqlQueryToString::sparkSQL::sybaseReservedWords():String[*] + +function <> meta::relational::functions::sqlQueryToString::sparkSQL::sparkReservedWords():String[*] { //Based on // http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc38151.1510/html/iqrefbb/Alhakeywords.htm