This is an automated email from the ASF dual-hosted git repository.
jhyde pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
from a990ecc4ae [CALCITE-5510] RelToSqlConverter should use ordinal for
`ORDER BY` if the dialect allows
new 0f1a40deef Add tests for [CALCITE-2980] Implement the FORMAT clause of
the CAST operator
new 49a0d5e9c1 [CALCITE-5357] Add FORMAT_TIME, FORMAT_DATE,
FORMAT_DATETIME, FORMAT_TIMESTAMP functions (enabled in BigQuery library)
new 65a5efc0d6 [CALCITE-5484] Add DATETIME_SUB function (enabled in
BigQuery library)
new cb97d299d2 [CALCITE-5469] Add DATETIME_ADD, DATETIME_DIFF, DATE_ADD,
DATE_DIFF functions (enabled in BigQuery library)
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
babel/src/main/codegen/config.fmpp | 1 +
babel/src/test/resources/sql/big-query.iq | 209 +-
core/src/main/codegen/default_config.fmpp | 2 +
core/src/main/codegen/templates/Parser.jj | 62 +
.../calcite/adapter/enumerable/RexImpTable.java | 49 +
.../org/apache/calcite/runtime/SqlFunctions.java | 23 +
.../java/org/apache/calcite/sql/SqlDialect.java | 14 +
.../apache/calcite/sql/SqlIntervalQualifier.java | 76 +
.../main/java/org/apache/calcite/sql/SqlKind.java | 5 +-
.../calcite/sql/dialect/BigQuerySqlDialect.java | 11 +
.../calcite/sql/fun/SqlLibraryOperators.java | 88 +-
.../org/apache/calcite/sql/type/OperandTypes.java | 51 +-
.../calcite/sql2rel/StandardConvertletTable.java | 74 +-
.../org/apache/calcite/util/BuiltInMethod.java | 6 +
.../apache/calcite/util/format/FormatElement.java | 58 +
.../calcite/util/format/FormatElementEnum.java | 234 ++
.../apache/calcite/util/format/FormatModel.java | 22 +-
.../apache/calcite/util/format/FormatModels.java | 278 ++
.../clone => util/format}/package-info.java | 4 +-
.../calcite/rel/rel2sql/RelToSqlConverterTest.java | 35 +
.../org/apache/calcite/util/FormatModelTest.java | 67 +
core/src/test/resources/sql/cast-with-format.iq | 2884 ++++++++++++++++++++
site/_docs/reference.md | 11 +
.../org/apache/calcite/test/SqlOperatorTest.java | 310 ++-
24 files changed, 4416 insertions(+), 158 deletions(-)
create mode 100644
core/src/main/java/org/apache/calcite/util/format/FormatElement.java
create mode 100644
core/src/main/java/org/apache/calcite/util/format/FormatElementEnum.java
copy
splunk/src/main/java/org/apache/calcite/adapter/splunk/search/SplunkConnection.java
=> core/src/main/java/org/apache/calcite/util/format/FormatModel.java (60%)
create mode 100644
core/src/main/java/org/apache/calcite/util/format/FormatModels.java
copy core/src/main/java/org/apache/calcite/{adapter/clone =>
util/format}/package-info.java (90%)
create mode 100644
core/src/test/java/org/apache/calcite/util/FormatModelTest.java
create mode 100644 core/src/test/resources/sql/cast-with-format.iq