Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12754

alterTableColumnStatistics() in GenericInMemoryCatalog should ensure the table is non-partitioned

    XMLWordPrintableJSON

Details

    Description

      Currently logic (below) doesn't check if the partition is partitioned or not.

      	@Override
      	public void alterTableStatistics(ObjectPath tablePath, CatalogTableStatistics tableStatistics, boolean ignoreIfNotExists)
      			throws TableNotExistException {
      		checkNotNull(tablePath);
      		checkNotNull(tableStatistics);
      
      		if (tableExists(tablePath)) {
      			tableStats.put(tablePath, tableStatistics.copy());
      		} else if (!ignoreIfNotExists) {
      			throw new TableNotExistException(getName(), tablePath);
      		}
      	}
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              phoenixjiangnan Bowen Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m