[CALCITE-6814] Support weekofyear fucntions for Hive #14731
Annotations
3 errors
|
Test:
task ':core:autostyleJavaCheck'#L1
Execution failed for task ':core:autostyleJavaCheck':
See 'What went wrong' below
|
Test
Execution failed for task ':core:autostyleJavaCheck'.
> The following files have format violations:
core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java
@@ -529,7 +529,7 @@
import static org.apache.calcite.sql.fun.SqlStdOperatorTable.UNARY_PLUS;
import static org.apache.calcite.sql.fun.SqlStdOperatorTable.UPPER;
import static org.apache.calcite.sql.fun.SqlStdOperatorTable.USER;
-import·static·org.apache.calcite.sql.fun.SqlStdOperatorTable.VARIANTNULL;;␊
+import·static·org.apache.calcite.sql.fun.SqlStdOperatorTable.VARIANTNULL;␊
import static org.apache.calcite.util.ReflectUtil.isStatic;
import static java.util.Objects.requireNonNull;
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java
@@ -126,8 +126,6 @@
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
-import static java.time.temporal.ChronoField.*;
-
import static org.apache.calcite.config.CalciteSystemProperty.FUNCTION_LEVEL_CACHE_MAX_SIZE;
import static org.apache.calcite.linq4j.Nullness.castNonNull;
import static org.apache.calcite.util.Static.RESOURCE;
@@ -139,6 +137,7 @@
import static java.lang.Long.parseLong;
import static java.lang.Short.parseShort;
import static java.nio.charset.StandardCharsets.UTF_8;
+import static java.time.temporal.ChronoField.*;
import static java.util.Objects.requireNonNull;
import static java.util.stream.Collectors.joining;
@@ -5541,7 +5540,7 @@
* @throws NullPointerException if {@code text} is null
*/
public static LocalDate valueOf(final String text) {
-····String·s·=·Objects.requireNonNull(text).trim();␊
+····String·s·=·requireNonNull(text,·"text").trim();␊
ParsePosition pos = new ParsePosition(0);
try {
DateTimeFormatter PARSE_FORMATTER =
Run './gradlew autostyleApply' to fix the violations.
|
Loading