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

Calling getString() on RowResult for wrong type gave weird exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.5.0
    • 0.10.0
    • client

    Description

      When calling getString(idx) on a column that isn't a string, it yields a bizarre exception.

      Similarly, calling getInt() on a 'short' column gives silently wrong results.

      For all cases we should have a check that the type matches the data to prevent confused users getting wrong results.

      Attachments

        1. KUDU-1267.1.patch
          4 kB
          Theodore michael Malaska

        Issue Links

          Activity

            People

              ted.m Theodore michael Malaska
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: