You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "w3ll1ngt (via GitHub)" <gi...@apache.org> on 2026/05/18 21:15:44 UTC
[PR] IGNITE-28689 Update Calcite SQL supported functions doc [ignite]
w3ll1ngt opened a new pull request, #13147:
URL: https://github.com/apache/ignite/pull/13147
Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
### The Contribution Checklist
- [ ] There is a single JIRA ticket related to the pull request.
- [ ] The web-link to the pull request is attached to the JIRA ticket.
- [ ] The JIRA ticket has the _Patch Available_ state.
- [ ] The pull request body describes changes that have been made.
The description explains _WHAT_ and _WHY_ was made instead of _HOW_.
- [ ] The pull request title is treated as the final commit message.
The following pattern must be used: `IGNITE-XXXX Change summary` where `XXXX` - number of JIRA issue.
- [ ] A reviewer has been mentioned through the JIRA comments
(see [the Maintainers list](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute#HowtoContribute-ReviewProcessandMaintainers))
- [ ] The pull request has been checked by the Teamcity Bot and
the `green visa` attached to the JIRA ticket (see tab `PR Check` at [TC.Bot - Instance 1](https://tcbot2.sbt-ignite-dev.ru/prs.html) or [TC.Bot - Instance 2](https://mtcga.gridgain.com/prs.html))
### Notes
- [How to Contribute](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute)
- [Coding abbreviation rules](https://cwiki.apache.org/confluence/display/IGNITE/Abbreviation+Rules)
- [Coding Guidelines](https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines)
- [Apache Ignite Teamcity Bot](https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+Teamcity+Bot)
If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com _#ignite_ channel.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-28689 Update Calcite SQL supported functions doc [ignite]
Posted by "w3ll1ngt (via GitHub)" <gi...@apache.org>.
w3ll1ngt commented on code in PR #13147:
URL: https://github.com/apache/ignite/pull/13147#discussion_r3303080671
##########
docs/_docs/SQL/sql-calcite.adoc:
##########
@@ -121,111 +121,796 @@ QUERY_ENGINE=CALCITE
----
--
-== Memory Quotas [[memory-quotas]]
+== SQL Reference
-The Calcite-based SQL engine can track and limit heap memory accounted by Calcite query execution operators.
-This is useful for protecting a server node from a single large query or from many concurrent memory-heavy queries.
+=== DDL
-Two types of quotas can be configured in `CalciteQueryEngineConfiguration`:
+Data definition language (DDL) statements are compliant with the old H2-based engine. You can find the DDL syntax description link:sql-reference/ddl[here, window=_blank].
-* `globalMemoryQuota` - a per-node heap memory quota for all Calcite SQL queries running on the node.
-* `queryMemoryQuota` - a per-node heap memory quota for each Calcite SQL query running on the node.
+=== DML
-Both quotas are disabled by default (`0`).
-The quota values are specified in bytes.
-If a quota is exceeded, the query fails with an exception.
-The global quota error message contains `Global memory quota for SQL queries exceeded`, and the per-query quota error message contains `Query quota exceeded`.
+The new SQL engine mostly inherits data manipulation language (DML) statements syntax from the Apache Calcite framework. See the Apache Calcite SQL grammar description link:https://calcite.apache.org/docs/reference.html[here, window=_blank].
-The quota is applied to query execution structures that keep rows in heap memory, for example sorting, hash joins, hash aggregates, set operations, collection operations, spools, and result materialization.
-It is not a process memory limit and it does not account for Ignite data regions, direct memory, JVM native memory, or the operating system page cache.
-The quotas are per-node.
-For a distributed query, total memory consumption across the cluster can be higher because the limit is applied independently on every participating node.
-Size these quotas together with `-Xmx` and the expected SQL concurrency.
+In most cases, statement syntax is compliant with the old SQL engine. But there are still some differences between DML dialects in H2-based engine and Calcite-based engine. For example, note the `MERGE` statement syntax has changed.
-[tabs]
---
-tab:XML[]
-[source,xml]
-----
-<bean class="org.apache.ignite.configuration.IgniteConfiguration">
- <property name="sqlConfiguration">
- <bean class="org.apache.ignite.configuration.SqlConfiguration">
- <property name="queryEnginesConfiguration">
- <list>
- <bean class="org.apache.ignite.calcite.CalciteQueryEngineConfiguration">
- <property name="default" value="true"/>
- <property name="globalMemoryQuota" value="#{4L * 1024 * 1024 * 1024}"/>
- <property name="queryMemoryQuota" value="#{512L * 1024 * 1024}"/>
- </bean>
- </list>
- </property>
- </bean>
- </property>
-</bean>
-----
-tab:Java[]
-[source,java]
-----
-IgniteConfiguration cfg = new IgniteConfiguration().setSqlConfiguration(
- new SqlConfiguration().setQueryEnginesConfiguration(
- new CalciteQueryEngineConfiguration()
- .setDefault(true)
- .setGlobalMemoryQuota(4L * 1024 * 1024 * 1024)
- .setQueryMemoryQuota(512L * 1024 * 1024)
- )
-);
-----
---
+=== Supported Functions
-== SQL Reference
+The Calcite-based SQL engine currently supports the following user-facing functions and operators.
+Functions marked as Ignite-specific are provided through Ignite's Calcite operator table.
Review Comment:
Thx. Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-28689 Update Calcite SQL supported functions doc [ignite]
Posted by "alex-plekhanov (via GitHub)" <gi...@apache.org>.
alex-plekhanov commented on code in PR #13147:
URL: https://github.com/apache/ignite/pull/13147#discussion_r3274408870
##########
docs/_docs/SQL/sql-calcite.adoc:
##########
@@ -121,111 +121,796 @@ QUERY_ENGINE=CALCITE
----
--
-== Memory Quotas [[memory-quotas]]
+== SQL Reference
-The Calcite-based SQL engine can track and limit heap memory accounted by Calcite query execution operators.
-This is useful for protecting a server node from a single large query or from many concurrent memory-heavy queries.
+=== DDL
-Two types of quotas can be configured in `CalciteQueryEngineConfiguration`:
+Data definition language (DDL) statements are compliant with the old H2-based engine. You can find the DDL syntax description link:sql-reference/ddl[here, window=_blank].
-* `globalMemoryQuota` - a per-node heap memory quota for all Calcite SQL queries running on the node.
-* `queryMemoryQuota` - a per-node heap memory quota for each Calcite SQL query running on the node.
+=== DML
-Both quotas are disabled by default (`0`).
-The quota values are specified in bytes.
-If a quota is exceeded, the query fails with an exception.
-The global quota error message contains `Global memory quota for SQL queries exceeded`, and the per-query quota error message contains `Query quota exceeded`.
+The new SQL engine mostly inherits data manipulation language (DML) statements syntax from the Apache Calcite framework. See the Apache Calcite SQL grammar description link:https://calcite.apache.org/docs/reference.html[here, window=_blank].
-The quota is applied to query execution structures that keep rows in heap memory, for example sorting, hash joins, hash aggregates, set operations, collection operations, spools, and result materialization.
-It is not a process memory limit and it does not account for Ignite data regions, direct memory, JVM native memory, or the operating system page cache.
-The quotas are per-node.
-For a distributed query, total memory consumption across the cluster can be higher because the limit is applied independently on every participating node.
-Size these quotas together with `-Xmx` and the expected SQL concurrency.
+In most cases, statement syntax is compliant with the old SQL engine. But there are still some differences between DML dialects in H2-based engine and Calcite-based engine. For example, note the `MERGE` statement syntax has changed.
-[tabs]
---
-tab:XML[]
-[source,xml]
-----
-<bean class="org.apache.ignite.configuration.IgniteConfiguration">
- <property name="sqlConfiguration">
- <bean class="org.apache.ignite.configuration.SqlConfiguration">
- <property name="queryEnginesConfiguration">
- <list>
- <bean class="org.apache.ignite.calcite.CalciteQueryEngineConfiguration">
- <property name="default" value="true"/>
- <property name="globalMemoryQuota" value="#{4L * 1024 * 1024 * 1024}"/>
- <property name="queryMemoryQuota" value="#{512L * 1024 * 1024}"/>
- </bean>
- </list>
- </property>
- </bean>
- </property>
-</bean>
-----
-tab:Java[]
-[source,java]
-----
-IgniteConfiguration cfg = new IgniteConfiguration().setSqlConfiguration(
- new SqlConfiguration().setQueryEnginesConfiguration(
- new CalciteQueryEngineConfiguration()
- .setDefault(true)
- .setGlobalMemoryQuota(4L * 1024 * 1024 * 1024)
- .setQueryMemoryQuota(512L * 1024 * 1024)
- )
-);
-----
---
+=== Supported Functions
-== SQL Reference
+The Calcite-based SQL engine currently supports the following user-facing functions and operators.
+Functions marked as Ignite-specific are provided through Ignite's Calcite operator table.
Review Comment:
We shouldn't mention some functions as Ignite-specific. Operator table - it's an internal API entity, should not be exposed to the user. Let's remove this line.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-28689 Update Calcite SQL supported functions doc [ignite]
Posted by "alex-plekhanov (via GitHub)" <gi...@apache.org>.
alex-plekhanov merged PR #13147:
URL: https://github.com/apache/ignite/pull/13147
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org