Skip to content

Commit 443d000

Browse files
committed
Temporarily move datetime ITs back to standalone mode
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent d4187d5 commit 443d000

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/standalone/CalcitePPLBuiltinDatetimeFunctionInvalidIT.java renamed to integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLBuiltinDatetimeFunctionInvalidIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package org.opensearch.sql.calcite.standalone;
6+
package org.opensearch.sql.calcite.remote;
77

88
import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_DATE_FORMATS_WITH_NULL;
99
import static org.opensearch.sql.util.MatcherUtils.verifyErrorMessageContains;

integ-test/src/test/java/org/opensearch/sql/calcite/standalone/CalcitePPLConditionBuiltinFunctionIT.java renamed to integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLConditionBuiltinFunctionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package org.opensearch.sql.calcite.standalone;
6+
package org.opensearch.sql.calcite.remote;
77

88
import static org.opensearch.sql.legacy.TestsConstants.*;
99
import static org.opensearch.sql.util.MatcherUtils.*;

integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalcitePPLDateTimeBuiltinFunctionIT.java renamed to integ-test/src/test/java/org/opensearch/sql/calcite/standalone/CalcitePPLDateTimeBuiltinFunctionIT.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
package org.opensearch.sql.calcite.remote;
6+
package org.opensearch.sql.calcite.standalone;
77

88
import static org.opensearch.sql.expression.datetime.DateTimeFunctions.exprYearweek;
99
import static org.opensearch.sql.expression.datetime.DateTimeFunctions.formatNow;
@@ -28,17 +28,15 @@
2828
import java.util.Locale;
2929
import org.hamcrest.Matchers;
3030
import org.json.JSONObject;
31-
import org.junit.Ignore;
3231
import org.junit.jupiter.api.Test;
3332
import org.opensearch.client.Request;
3433
import org.opensearch.sql.data.model.ExprDateValue;
3534
import org.opensearch.sql.data.model.ExprIntegerValue;
3635
import org.opensearch.sql.expression.function.FunctionProperties;
37-
import org.opensearch.sql.ppl.PPLIntegTestCase;
3836

39-
public class CalcitePPLDateTimeBuiltinFunctionIT extends PPLIntegTestCase {
37+
public class CalcitePPLDateTimeBuiltinFunctionIT extends CalcitePPLIntegTestCase {
4038
@Override
41-
public void init() throws Exception {
39+
public void init() throws IOException {
4240
super.init();
4341
enableCalcite();
4442
disallowCalciteFallback();
@@ -871,7 +869,6 @@ public void testDayName() throws IOException {
871869
* LAST_DAY(DATE/STRING/TIMESTAMP/TIME) -> DATE (last day of the month as a DATE for a valid
872870
* argument.) MAKE_DATE(DOUBLE, DOUBLE) -> DATE (Create a date from the year and day of year.)
873871
*/
874-
@Ignore
875872
@Test
876873
public void testDayNameAndMonthNameAndMakeDate() throws IOException {
877874
JSONObject actual =
@@ -970,7 +967,6 @@ public void testMakeDateWithNullIO() throws IOException {
970967
* date value given the day number N. DATETIME: (TIMESTAMP, STRING) -> TIMESTAMP (TIMESTAMP) ->
971968
* TIMESTAMP Converts the datetime to a new timezone
972969
*/
973-
@Ignore
974970
@Test
975971
public void testDateFormatAndDatetimeAndFromDays() throws IOException {
976972
JSONObject actual =

0 commit comments

Comments
 (0)