Skip to content

Table Index Config settings not preserved when migrating to fieldConfigList #14660

@clarahong

Description

@clarahong

When setting table index configs, Pinot documentation recommends deprecating usage of single-column index configurations in favor of the Field Config List.

However, when attempting to migrate an existing table from the deprecated format, these settings are not respected. For example, using an old table config, dictionary indexes are disabled:

{
  ...
    "tableIndexConfig": {
      "noDictionaryColumns": [
        "col1",
        “range1”,
      ],
      ...
      "optimizeDictionaryForMetrics": true,
      "optimizeDictionary": false,
      "noDictionarySizeRatioThreshold": 0.85
    },
  }

Updating to a new definition:

{
...
  "fieldConfigList": [
    {
      "name": "range1",
      "indexes": {
        "dictionary": {
          "disabled": true
        },
        "range": {}
      }
    },
    {
      "name": "col1",
      "indexes": {
        "dictionary": {
          "disabled": true
        },
        "json": {
          "maxLevels": 1,
          "excludeArray": true,
          "disableCrossArrayUnnest": true
        }
      }
    }
  ]
}

Making the table config change and triggering a table reload creates new dictionary indexes even though they are specified as disabled. Adding the property "encodingType": "RAW" also does not resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions