[ https://issues.apache.org/jira/browse/KUDU-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordan Birdsell updated KUDU-1672: ---------------------------------- Resolution: Fixed Fix Version/s: 1.1.0 Status: Resolved (was: In Review) commit 4d1b1e973655b783f2e7b338b6574b2e2166e08f > [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 > Fix For: 1.1.0 > > > 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)