[
https://issues.apache.org/jira/browse/KUDU-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15540981#comment-15540981
]
Jordan Birdsell commented on KUDU-1672:
---------------------------------------
Code review: https://gerrit.cloudera.org/#/c/4589/
> [Python] - Float types are treated as doubles when creating predicate
> ---------------------------------------------------------------------
>
> Key: KUDU-1672
> URL: https://issues.apache.org/jira/browse/KUDU-1672
> Project: Kudu
> Issue Type: Bug
> Components: python
> Affects Versions: 1.0.0
> Reporter: Jordan Birdsell
> Assignee: Jordan Birdsell
>
> In the python client, adding a predicate for float types results in an error
> because the comparison value is being treated as a double.
> >>> scanner.add_predicate(table['float'] >= 10.0001)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "kudu/client.pyx", line 1180, in kudu.client.Scanner.add_predicate
> (kudu/client.cpp:14068)
> cpdef add_predicate(self, Predicate pred):
> File "kudu/client.pyx", line 1199, in kudu.client.Scanner.add_predicate
> (kudu/client.cpp:14014)
> check_status(self.scanner.AddConjunctPredicate(clone))
> File "kudu/errors.pyx", line 60, in kudu.errors.check_status
> (kudu/errors.cpp:1017)
> raise KuduInvalidArgument(c_message)
> kudu.errors.KuduInvalidArgument: non-float value for float column float
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)