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

Kudu should not throw table loading exceptions for fixable errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Kudu_Impala
    • Impala 2.8.0
    • Frontend

    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

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

            Dates

              Created:
              Updated:
              Resolved: