Skip to content

Commit

Permalink
[FLINK-27891][Table] Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
snuyanzin committed Aug 8, 2022
1 parent 459b114 commit 2e65622
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Expand Up @@ -158,7 +158,8 @@ ANY, and(logical(LogicalTypeRoot.BOOLEAN), LITERAL)
sequence(
Arrays.asList("haystack", "needle"),
Arrays.asList(
logical(LogicalTypeRoot.ARRAY), FIRST_ARRAY_ELEMENT_ARG)))
logical(LogicalTypeRoot.ARRAY),
FIRST_ARRAY_ELEMENT_ARG)))
.outputTypeStrategy(
nullableIfArgs(
ConstantArgumentCount.of(0), explicit(DataTypes.BOOLEAN())))
Expand All @@ -174,7 +175,8 @@ ANY, and(logical(LogicalTypeRoot.BOOLEAN), LITERAL)
sequence(
Arrays.asList("haystack", "element"),
Arrays.asList(
logical(LogicalTypeRoot.ARRAY), FIRST_ARRAY_ELEMENT_ARG)))
logical(LogicalTypeRoot.ARRAY),
FIRST_ARRAY_ELEMENT_ARG)))
.outputTypeStrategy(nullableIfArgs(argument(0)))
.runtimeClass(
"org.apache.flink.table.runtime.functions.scalar.ArrayAppendFunction")
Expand Down
Expand Up @@ -35,11 +35,12 @@ class CollectionFunctionsITCase extends BuiltInFunctionTestBase {
Stream<TestSetSpec> getTestSetSpecs() {
return Stream.of(
TestSetSpec.forFunction(BuiltInFunctionDefinitions.ARRAY_APPEND)
.testResult(
.testResult(
$("f2").arrayPrepend("!"),
"ARRAY_PREPEND('!', f2)",
new String[] {"!", "Hello", "World"},
DataTypes.ARRAY(DataTypes.STRING())) .onFieldsWithData(
DataTypes.ARRAY(DataTypes.STRING()))
.onFieldsWithData(
new Integer[] {1, 2}, null, new String[] {"Hello", "World"})
.andDataTypes(
DataTypes.ARRAY(DataTypes.INT()),
Expand Down

0 comments on commit 2e65622

Please sign in to comment.