-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: use SqlArgument wrapper to look up functions #7011
refactor: use SqlArgument wrapper to look up functions #7011
Conversation
6e714b2
to
7cd498d
Compare
7cd498d
to
9a121f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pulling this out @stevenpyzhang , overall LGTM with a few questions/nits
) { | ||
final SqlType sqlType = instance.getSqlType(); | ||
|
||
// CHECKSTYLE_RULES.ON: CyclomaticComplexity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a usual pattern for where we turn the checkstyle rules back on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just following the other patterns, we usually turn it back on right after the method signature, I moved it up one line now
import io.confluent.ksql.schema.ksql.types.SqlType; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the IDE add these random extra lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure where this came from, I removed it though
ksqldb-execution/src/main/java/io/confluent/ksql/execution/codegen/SqlToJavaVisitor.java
Outdated
Show resolved
Hide resolved
ksqldb-execution/src/main/java/io/confluent/ksql/execution/function/UdtfUtil.java
Outdated
Show resolved
Hide resolved
ksqldb-execution/src/main/java/io/confluent/ksql/execution/util/ExpressionTypeManager.java
Outdated
Show resolved
Hide resolved
dcb3ada
to
4c36090
Compare
Description
Uses SqlArgument wrapper when looking up functions. This allows us in future PR's to handle non SqlType function arguments (such as lambdas)
PR looks large, but it's mainly just replacing instances of SqlType with SqlArgument in UDF lookup code.
Testing done
Updated unit tests, non functional change
Reviewer checklist