Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-1672

[Python] - Float types are treated as doubles when creating predicate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • python
    • None

    Description

      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

      Attachments

        Activity

          People

            jtbirdsell Jordan Birdsell
            jtbirdsell Jordan Birdsell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: