Skip to content
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

[CALCITE-6566] JDBC adapter should generate PI function with parenthe… #3956

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

NobiGo
Copy link
Contributor

@NobiGo NobiGo commented Sep 10, 2024

…ses When unparse PI function without parentheses

…ses When unparse PI function without parentheses
@@ -1815,7 +1815,7 @@ public class SqlStdOperatorTable extends ReflectiveSqlOperatorTable {

/** The {@code PI} function. */
public static final SqlFunction PI =
SqlBasicFunction.create("PI", ReturnTypes.DOUBLE, OperandTypes.NILADIC,
SqlBasicFunction.create(SqlKind.PI, ReturnTypes.DOUBLE, OperandTypes.NILADIC,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have to be changed to SqlKind.PI?
The others look good

@YiwenWu
Copy link
Contributor

YiwenWu commented Sep 12, 2024

Based on the discussion in jira, is there a more general way to implement this rather than being specific to PI functions?

@NobiGo
Copy link
Contributor Author

NobiGo commented Sep 13, 2024

Based on the discussion in jira, is there a more general way to implement this rather than being specific to PI functions?

@YiwenWu @caicancai Thanks for the review. We can discuss this in Jira.

Copy link
Member

@caicancai caicancai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

sonarcloud bot commented Sep 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants