Skip to content

Commit

Permalink
Disable SparkAdapterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Sep 18, 2024
1 parent ddc741e commit a5f6189
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
package org.apache.calcite.test;

import org.apache.calcite.adapter.spark.SparkRel;
import org.apache.calcite.util.TestUtil;
import org.apache.calcite.util.Util;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assumptions.assumeFalse;

/**
* Tests for using Calcite with Spark as an internal engine, as implemented by
* the {@link org.apache.calcite.adapter.spark} package.
Expand All @@ -42,6 +45,10 @@ class SparkAdapterTest {
"(values (1, 'a'), (2, 'b'), (3, 'b'), (4, 'c'), (2, 'c')) as t(x, y)";

private CalciteAssert.AssertQuery sql(String sql) {
assumeFalse(TestUtil.getJavaMajorVersion() >= 23,
"Cannot run on JDK 23 and higher; "
+ "enable when [HADOOP-19212] has been fixed");

return CalciteAssert.that()
.with(CalciteAssert.Config.SPARK)
.query(sql);
Expand Down

0 comments on commit a5f6189

Please sign in to comment.