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

Rejigger Schema APIs to allow key columns not listed first

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Private Beta
    • Fix Version/s: None
    • Component/s: api, client
    • Labels:
      None

      Description

      In some discussion with Martin Grund, we came to the conclusion that the current APIs for defining the key columns in a schema are not very easy to understand. Currently, we take only a 'num_key_columns' and require that the columns making up the primary key are the first n columns listed in the column list.

      This is a bit confusing to use, and also somewhat restrictive even though conventionally people do list these first. For example, we had to reorder the columns of tpch lineitem to make the primary key columns listed first.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tlipcon Todd Lipcon
                Reporter:
                tlipcon Todd Lipcon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: