Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.ConvertTZFunctionIT;

Expand All @@ -12,5 +12,6 @@ public class CalciteConvertTZFunctionIT extends ConvertTZFunctionIT {
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.CsvFormatIT;

Expand All @@ -12,5 +12,6 @@ public class CalciteCsvFormatIT extends CsvFormatIT {
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote;

import java.io.IOException;
import org.opensearch.sql.ppl.DataTypeIT;

public class CalciteDataTypeIT extends DataTypeIT {
@Override
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}

@Override
public void test_nonnumeric_data_types() throws IOException {
withFallbackEnabled(
() -> {
try {
super.test_nonnumeric_data_types();
} catch (IOException e) {
throw new RuntimeException(e);
}
},
"ignore this class since IP type is unsupported in calcite engine");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.DateTimeComparisonIT;

Expand All @@ -17,5 +17,6 @@ public CalciteDateTimeComparisonIT(String functionCall, String name, Boolean exp
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,15 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import java.io.IOException;
import org.junit.Ignore;
import org.opensearch.sql.ppl.DateTimeFunctionIT;

public class CalciteDateTimeFunctionIT extends DateTimeFunctionIT {
@Override
public void init() throws Exception {
super.init();
enableCalcite();
}

@Ignore("https://github.com/opensearch-project/sql/issues/3475")
@Override
public void testTimestampDiff() throws IOException {
super.testTimestampDiff();
disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.DateTimeImplementationIT;

Expand All @@ -12,5 +12,6 @@ public class CalciteDateTimeImplementationIT extends DateTimeImplementationIT {
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote;

import java.io.IOException;
import org.opensearch.sql.ppl.DedupCommandIT;

public class CalciteDedupCommandIT extends DedupCommandIT {
@Override
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}

@Override
public void testConsecutiveDedup() throws IOException {
withFallbackEnabled(
() -> {
try {
super.testConsecutiveDedup();
} catch (IOException e) {
throw new RuntimeException(e);
}
},
"https://github.com/opensearch-project/sql/issues/3415");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.DescribeCommandIT;

Expand All @@ -12,5 +12,7 @@ public class CalciteDescribeCommandIT extends DescribeCommandIT {
public void init() throws Exception {
super.init();
enableCalcite();
// TODO: "https://github.com/opensearch-project/sql/issues/3460"
// disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.ExplainIT;

public class CalciteExplainIT extends ExplainIT {
@Override
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}

@Override
public void testFillNullPushDownExplain() throws Exception {
withFallbackEnabled(
() -> {
try {
super.testFillNullPushDownExplain();
} catch (Exception e) {
throw new RuntimeException(e);
}
},
"https://github.com/opensearch-project/sql/issues/3461");
}

@Override
public void testTrendlinePushDownExplain() throws Exception {
withFallbackEnabled(
() -> {
try {
super.testTrendlinePushDownExplain();
} catch (Exception e) {
throw new RuntimeException(e);
}
},
"https://github.com/opensearch-project/sql/issues/3466");
}

@Override
public void testTrendlineWithSortPushDownExplain() throws Exception {
withFallbackEnabled(
() -> {
try {
super.testTrendlineWithSortPushDownExplain();
} catch (Exception e) {
throw new RuntimeException(e);
}
},
"https://github.com/opensearch-project/sql/issues/3466");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote;

import java.io.IOException;
import org.opensearch.sql.ppl.FieldsCommandIT;

public class CalciteFieldsCommandIT extends FieldsCommandIT {
@Override
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}

@Override
public void testDelimitedMetadataFields() throws IOException {
withFallbackEnabled(
() -> {
try {
super.testDelimitedMetadataFields();
} catch (IOException e) {
throw new RuntimeException(e);
}
},
"Calcite doesn't support metadata fields in fields yet");
}

@Override
public void testMetadataFields() throws IOException {
withFallbackEnabled(
() -> {
try {
super.testMetadataFields();
} catch (IOException e) {
throw new RuntimeException(e);
}
},
"Calcite doesn't support metadata fields in fields yet");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.FillNullCommandIT;

Expand All @@ -12,5 +12,7 @@ public class CalciteFillNullCommandIT extends FillNullCommandIT {
public void init() throws Exception {
super.init();
enableCalcite();
// TODO: "https://github.com/opensearch-project/sql/issues/3461"
// disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.GeoIpFunctionsIT;

Expand All @@ -12,5 +12,7 @@ public class CalciteGeoIpFunctionsIT extends GeoIpFunctionsIT {
public void init() throws Exception {
super.init();
enableCalcite();
// TODO: "https://github.com/opensearch-project/sql/issues/3506"
// disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote;

import java.io.IOException;
import org.opensearch.sql.ppl.GeoPointFormatsIT;

public class CalciteGeoPointFormatsIT extends GeoPointFormatsIT {
@Override
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}

@Override
public void testReadingGeoHash() throws IOException {
withFallbackEnabled(
() -> {
try {
super.testReadingGeoHash();
} catch (IOException e) {
throw new RuntimeException(e);
}
},
"Need to support metadata, https://github.com/opensearch-project/sql/issues/3333");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.HeadCommandIT;

Expand All @@ -12,5 +12,6 @@ public class CalciteHeadCommandIT extends HeadCommandIT {
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package org.opensearch.sql.calcite.remote.fallback;
package org.opensearch.sql.calcite.remote;

import org.opensearch.sql.ppl.IPComparisonIT;

Expand All @@ -12,5 +12,6 @@ public class CalciteIPComparisonIT extends IPComparisonIT {
public void init() throws Exception {
super.init();
enableCalcite();
disallowCalciteFallback();
}
}
Loading
Loading