You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Kevin Liew (JIRA)" <ji...@apache.org> on 2016/11/24 22:52:58 UTC
[jira] [Commented] (PHOENIX-3479) Modulo support for non
integer-types
[ https://issues.apache.org/jira/browse/PHOENIX-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15694360#comment-15694360 ]
Kevin Liew commented on PHOENIX-3479:
-------------------------------------
WIP patch.
I used `RoundingMode.HALF_UP` to convert BigDecimal to whole numbers at the JDBC layer so that "SELECT six * four / three" will evaluate to 8.
But I think the correct approach would be to create a LongModulusExpression similar to LongDivideExpression.
> Modulo support for non integer-types
> ------------------------------------
>
> Key: PHOENIX-3479
> URL: https://issues.apache.org/jira/browse/PHOENIX-3479
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.8.0
> Reporter: Kevin Liew
> Assignee: Kevin Liew
> Priority: Minor
> Attachments: PHOENIX-3479.patch
>
>
> MOD should be applicable to all numeric types
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)