Skip to content

Conversation

@cloud-fan
Copy link
Contributor

backport #28281 to 2.4

This backport has one difference: there is no EXTRACT(... FROM ...) SQL syntax in 2.4, so this PR just uses the common function call syntax.

override the `sql` method of `StringTrim`, `StringTrimLeft` and `StringTrimRight`, to use the standard SQL syntax.

The current implementation is wrong. It gives you a SQL string that returns different result.

No

new tests

Closes apache#28281 from cloud-fan/sql.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit b209b5f)
Signed-off-by: Dongjoon Hyun <[email protected]>
@cloud-fan
Copy link
Contributor Author

cc @dongjoon-hyun

@SparkQA
Copy link

SparkQA commented Apr 22, 2020

Test build #121618 has finished for PR 28299 at commit 13bd834.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Merged to branch-2.4. Thank you, @cloud-fan and @HyukjinKwon .
cc @holdenk since she is a release manager for 2.4.6.

@dongjoon-hyun
Copy link
Member

Oops. I'm late. :)

@dongjoon-hyun
Copy link
Member

Oh, this one seems to out of sync too. I cannot see the merged commit in GitHub branch-2.4
Screen Shot 2020-04-22 at 9 33 20 AM

@dongjoon-hyun dongjoon-hyun reopened this Apr 22, 2020
dongjoon-hyun pushed a commit that referenced this pull request Apr 22, 2020
backport #28281 to 2.4

This backport has one difference: there is no `EXTRACT(... FROM ...)` SQL syntax in 2.4, so this PR just uses the common function call syntax.

Closes #28299 from cloud-fan/pick.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants