diff --git a/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/version/finder/AbstractHiveDatasetVersionFinder.java b/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/version/finder/AbstractHiveDatasetVersionFinder.java index f12204862bb..a7a933bcf99 100644 --- a/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/version/finder/AbstractHiveDatasetVersionFinder.java +++ b/gobblin-data-management/src/main/java/org/apache/gobblin/data/management/version/finder/AbstractHiveDatasetVersionFinder.java @@ -18,11 +18,13 @@ import java.io.IOException; import java.util.Collection; +import java.util.Collections; import java.util.List; import lombok.extern.slf4j.Slf4j; import org.apache.hadoop.hive.metastore.IMetaStoreClient; +import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.ql.metadata.Partition; import com.google.common.base.Function; @@ -56,6 +58,8 @@ public Class extends DatasetVersion> versionClass() { * Calls {@link #getDatasetVersion(Partition)} for every {@link Partition} found. *
* Note: If an exception occurs while processing a partition, that partition will be ignored in the returned collection + * Also note that if the dataset passed is a view type, we will return an empty list even if the underlying table is + * partitioned. *
* * @throws IllegalArgumentException ifdataset
is not a {@link HiveDataset}. Or if {@link HiveDataset#getTable()}
@@ -69,7 +73,13 @@ public Collection