Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-1633 Pythonize the Python Client API
  3. KUDU-1680

Python - Improve PartialRow Usability

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: python
    • Labels:
      None

      Description

      The current semantics for setting values in a PartialRow are not very elegant or comfortable for Python developers. Improvements should be made here to allow more seamless interoperability between KuduPartial rows and Python data structures. Additionally, the PartialRow class is currently tied to the Table class. This should instead be tied to a schema.

      Several options should be provided:

      • Dictionary (eg. `schema.row_from_record( {'key': 1, 'micros': datetime.now(), 'string_val': 'test}

        )`)

      • Tuple (eg. `schema.row_from_record((1, datetime.now(), 'test'))`)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: