From 01abeb288f71f17653e00b697bc0dad2aaedf66e Mon Sep 17 00:00:00 2001 From: Kevin Ge Date: Wed, 30 Oct 2024 19:07:09 -0400 Subject: [PATCH] fix indent --- .../linkedin/coral/spark/CoralSparkTest.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/coral-spark/src/test/java/com/linkedin/coral/spark/CoralSparkTest.java b/coral-spark/src/test/java/com/linkedin/coral/spark/CoralSparkTest.java index 6b78acfac..7543a4728 100644 --- a/coral-spark/src/test/java/com/linkedin/coral/spark/CoralSparkTest.java +++ b/coral-spark/src/test/java/com/linkedin/coral/spark/CoralSparkTest.java @@ -724,25 +724,25 @@ public void testReflectFunctionReturnType() { assertEquals(createCoralSpark(relNode).getSparkSql(), targetSql); } - @Test - public void testJavaMethodFunction() { - RelNode relNode = TestUtils.toRelNode("SELECT java_method('java.lang.String', 'valueOf', 1) FROM default.complex"); - String targetSql = "SELECT reflect('java.lang.String', 'valueOf', 1)\n" + "FROM default.complex complex"; - assertEquals(createCoralSpark(relNode).getSparkSql(), targetSql); - } + @Test + public void testJavaMethodFunction() { + RelNode relNode = TestUtils.toRelNode("SELECT java_method('java.lang.String', 'valueOf', 1) FROM default.complex"); + String targetSql = "SELECT reflect('java.lang.String', 'valueOf', 1)\n" + "FROM default.complex complex"; + assertEquals(createCoralSpark(relNode).getSparkSql(), targetSql); + } - @Test - public void testJavaMethodFunctionReturnType() { - RelNode relNode = - TestUtils.toRelNode("SELECT java_method('java.lang.String', 'valueOf', 1) + 1 FROM default.complex"); - String targetSql = - "SELECT CAST(reflect('java.lang.String', 'valueOf', 1) AS INTEGER) + 1\n" + "FROM default.complex complex"; - assertEquals(createCoralSpark(relNode).getSparkSql(), targetSql); - - relNode = TestUtils.toRelNode("SELECT java_method('java.lang.String', 'valueOf', 1) || 'a' FROM default.complex"); - targetSql = "SELECT concat(reflect('java.lang.String', 'valueOf', 1), 'a')\n" + "FROM default.complex complex"; - assertEquals(createCoralSpark(relNode).getSparkSql(), targetSql); - } + @Test + public void testJavaMethodFunctionReturnType() { + RelNode relNode = + TestUtils.toRelNode("SELECT java_method('java.lang.String', 'valueOf', 1) + 1 FROM default.complex"); + String targetSql = + "SELECT CAST(reflect('java.lang.String', 'valueOf', 1) AS INTEGER) + 1\n" + "FROM default.complex complex"; + assertEquals(createCoralSpark(relNode).getSparkSql(), targetSql); + + relNode = TestUtils.toRelNode("SELECT java_method('java.lang.String', 'valueOf', 1) || 'a' FROM default.complex"); + targetSql = "SELECT concat(reflect('java.lang.String', 'valueOf', 1), 'a')\n" + "FROM default.complex complex"; + assertEquals(createCoralSpark(relNode).getSparkSql(), targetSql); + } @Test public void testNegationOperator() {