Skip to content

Conversation

@xinyual
Copy link
Contributor

@xinyual xinyual commented Apr 7, 2025

Description

Previously we use CHAR in some return type of udf, which will hard truncate return value. Now change it to var char.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]
#3400
#3520

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: xinyual <xinyual@amazon.com>
xinyual added 2 commits April 7, 2025 17:32
Signed-off-by: xinyual <xinyual@amazon.com>
Signed-off-by: xinyual <xinyual@amazon.com>
executeQuery(
String.format(
"source=%s | where strict_date_optional_time > DATE_SUB(TIMESTAMP('1999-04-12"
"source=%s | where strict_date_optional_time > DATE_SUB(TIMESTAMP('1984-04-12"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this change related to this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. It's a wrong IT. I fix it now.

@LantaoJin LantaoJin merged commit e86f4b6 into opensearch-project:main Apr 8, 2025
22 checks passed
penghuo pushed a commit that referenced this pull request Jun 16, 2025
* fix varchar bug

Signed-off-by: xinyual <xinyual@amazon.com>

* apply spotless

Signed-off-by: xinyual <xinyual@amazon.com>

* fix wrong IT

Signed-off-by: xinyual <xinyual@amazon.com>

---------

Signed-off-by: xinyual <xinyual@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

calcite calcite migration releated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants