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 @@ -57,9 +57,6 @@ class GeneratedSqlSurfaceTest {

@BeforeAll
static void init() {
// No-op error handler so a parse error returns rather than terminating the JVM.
GeneratedFunctions.meos_initialize_error_handler((level, code, message) -> { });
GeneratedFunctions.meos_initialize();
tfloat = "tfloatFromHexWKB('" + TFloat.encode(GeneratedFunctions.tfloat_in(
"[1@2020-01-01 00:00:00+00, 3@2020-01-03 00:00:00+00]")) + "')";
tint = "tintFromHexWKB('" + TInt.encode(GeneratedFunctions.tint_in(
Expand All @@ -74,11 +71,10 @@ static void init() {
}

@AfterAll
static void finalizeMeos() {
static void stopSpark() {
if (spark != null) {
spark.stop();
}
GeneratedFunctions.meos_finalize();
}

private static Object scalar(String sql) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class SqlSurfaceOverUdfSurfaceTest {

@BeforeAll
static void init() {
// No-op error handler so a parse error returns rather than terminating the JVM.
GeneratedFunctions.meos_initialize_error_handler((level, code, message) -> { });
GeneratedFunctions.meos_initialize();
trip = "tgeompointFromHexEWKB('" + TGeomPoint.encode(GeneratedFunctions.tgeompoint_in(
"[Point(1 1)@2020-01-01 00:00:00+00, Point(2 2)@2020-01-02 00:00:00+00]")) + "')";
spark = SparkSession.builder().appName("sql-over-udf-surface").master("local[1]")
Expand All @@ -64,11 +61,10 @@ static void init() {
}

@AfterAll
static void finalizeMeos() {
static void stopSpark() {
if (spark != null) {
spark.stop();
}
GeneratedFunctions.meos_finalize();
}

private static Object scalar(String sql) {
Expand Down
Loading