Skip to content

Commit d2be395

Browse files
authored
IGNITE-29117 Fix test to forcefully use H2 engine, because of Calcite default (#68)
1 parent fb8596d commit d2be395

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

‎.github/workflows/pr_check.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ jobs:
4646
python-version: ${{ matrix.cfg.python}}
4747
- name: Install Apache Ignite
4848
run: |
49-
curl -L https://archive.apache.org/dist/ignite/${IGNITE_VERSION}/apache-ignite-slim-${IGNITE_VERSION}-bin.zip > ignite.zip
49+
curl -L https://archive.apache.org/dist/ignite/${IGNITE_VERSION}/apache-ignite-${IGNITE_VERSION}-bin.zip > ignite.zip
5050
unzip ignite.zip -d /opt
51-
mv /opt/apache-ignite-slim-${IGNITE_VERSION}-bin /opt/ignite
51+
mv /opt/apache-ignite-${IGNITE_VERSION}-bin /opt/ignite
5252
mv /opt/ignite/libs/optional/ignite-log4j2 /opt/ignite/libs/
53+
# The test configuration references both SQL engines: the Calcite module is optional before Ignite 2.19.
54+
mv /opt/ignite/libs/optional/ignite-calcite /opt/ignite/libs/
5355
5456
- name: Install tox
5557
run: |

‎tests/config/ignite-config.xml.jinja2‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@
2727
http://www.springframework.org/schema/util/spring-util.xsd">
2828

2929
<bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
30+
<property name="sqlConfiguration">
31+
<bean class="org.apache.ignite.configuration.SqlConfiguration">
32+
<property name="queryEnginesConfiguration">
33+
<list>
34+
<bean class="org.apache.ignite.indexing.IndexingQueryEngineConfiguration">
35+
<property name="default" value="true"/>
36+
</bean>
37+
<bean class="org.apache.ignite.calcite.CalciteQueryEngineConfiguration"/>
38+
</list>
39+
</property>
40+
</bean>
41+
</property>
42+
3043
<property name="dataStorageConfiguration">
3144
<bean class="org.apache.ignite.configuration.DataStorageConfiguration">
3245
<property name="defaultDataRegionConfiguration">

0 commit comments

Comments
 (0)