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

HIVE-27885 : Cast decimal from string with space without digits before dot returns NULL #4876

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

nareshpr
Copy link
Contributor

What changes were proposed in this pull request?

Support valid decimal which has only scale.

Why are the changes needed?

Incorrect results

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Yes, added testcase in cast2.q file

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (11.0.8) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@ramesh0201
Copy link
Contributor

+1 LGTM

Copy link

@aturoczy aturoczy left a comment

Choose a reason for hiding this comment

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

with the .0000 is applicable in SQL standard?
.00 is more likely a Culture Info and it is bit US specific.
cc: @ayushtkn @abstractdog

@nrg4878
Copy link
Contributor

nrg4878 commented Nov 21, 2023

@ayushtkn any concerns with this or are we good to merge?

@ayushtkn
Copy link
Member

yep, no objections from my side. go ahed!!!

@nrg4878 nrg4878 merged commit ae89034 into apache:master Nov 22, 2023
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants