Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support
Object
as the type parameter for a UDAF variadic colu…
…mn argument (#9481) * feat: support Object as type param for UDAF variadic col args * test: add unit tests for heterogeneous col var args * test: add QTTs for heterogeneous col varargs * test: add historical plans * Update non-var obj UDAF param error message per code review Co-authored-by: Zara Lim <jzaralim@gmail.com> * test: update error messages in tests * refactor: move obj var arg param type to static const Co-authored-by: Zara Lim <jzaralim@gmail.com>
- Loading branch information
1 parent
6a6ccd3
commit 9444fe1
Showing
30 changed files
with
4,501 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
ksqldb-common/src/main/java/io/confluent/ksql/function/types/AnyType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2022 Confluent Inc. | ||
* | ||
* Licensed under the Confluent Community License; you may not use this file | ||
* except in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.confluent.io/confluent-community-license | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package io.confluent.ksql.function.types; | ||
|
||
public final class AnyType extends ObjectType { | ||
public static final AnyType INSTANCE = new AnyType(); | ||
|
||
@Override | ||
public int hashCode() { | ||
return 11; | ||
} | ||
|
||
@Override | ||
public boolean equals(final Object obj) { | ||
return obj instanceof AnyType; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ANY"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.