Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3388

Kudu should not throw table loading exceptions for fixable errors

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Kudu_Impala
    • Fix Version/s: Impala 2.8.0
    • Component/s: Frontend
    • Labels:

      Description

      By throwing a TableLoadingException, that ensures the user wont be able to fix the problems.

      Ex:

        private void loadColumns(List<FieldSchema> schema, HiveMetaStoreClient client,
            Set<String> keyColumns) throws TableLoadingException {
      
          if (keyColumns.size() == 0 || keyColumns.size() > schema.size()) {
            throw new TableLoadingException(String.format("Kudu tables must have at least one"
                + "key column (had %d), and no more key columns than there are table columns "
                + "(had %d).", keyColumns.size(), schema.size()));
          }
      

      To fix the problem above the user could modify the table properties.

        Attachments

          Activity

            People

            • Assignee:
              dtsirogiannis Dimitris Tsirogiannis
              Reporter:
              caseyc casey
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: