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

Expose unscaled numeric values #12

Merged
merged 1 commit into from
Sep 14, 2015
Merged

Conversation

sopel39
Copy link
Member

@sopel39 sopel39 commented Sep 10, 2015

Unscaled numeric values are used to build decimal values in TPCH connector.

@sopel39
Copy link
Member Author

sopel39 commented Sep 10, 2015

related issue prestodb/presto#3557
FYI: @martint @dain @cberner

@dain
Copy link
Member

dain commented Sep 10, 2015

Can you rename the currency ones to getFooInCents and the discount/tax ones to getFooPercent?

@sopel39
Copy link
Member Author

sopel39 commented Sep 11, 2015

@dain I have updated the commit, please take a look

public double getDiscount()
{
return discount / 100.0;
}

public long getDiscountUnscaled()
Copy link
Member

Choose a reason for hiding this comment

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

This should be getDiscountPercent.

Unscaled numeric values are used to build decimal values in TPCH connector.
@sopel39
Copy link
Member Author

sopel39 commented Sep 14, 2015

@dain fixed

@dain dain merged commit 594f8ec into trinodb:master Sep 14, 2015
@dain
Copy link
Member

dain commented Sep 14, 2015

Merged, thanks!

@dain
Copy link
Member

dain commented Sep 14, 2015

Do you need any other changes before I release?

@sopel39
Copy link
Member Author

sopel39 commented Sep 14, 2015

That's the only non-Presto change, thanks.

@dain
Copy link
Member

dain commented Sep 14, 2015

This is released as 0.5

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

Successfully merging this pull request may close these issues.

2 participants