You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Jordan Birdsell (JIRA)" <ji...@apache.org> on 2016/10/02 16:14:20 UTC

[jira] [Created] (KUDU-1672) [Python] - Float types are treated as doubles when creating predicate

Jordan Birdsell created KUDU-1672:
-------------------------------------

             Summary: [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)