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

Python - Improve PartialRow Usability

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • python
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: