I have a internal hive table that is partitioned. I am creating a view on the hive table like this:
create view feat_view PARTITIONED ON(partition_dt) AS SELECT col1, partition_dt from features_v2;
This works fine. But when I try listing the partitions on the view, I get an empty result:
show partitions feat_view;;
+------------+--+
| partition |
+------------+--+
+------------+--+
The base table is partitioned:
show partitions features_v2;;
+--------------------------+--+
| partition |
+--------------------------+--+
| partition_dt=2018-11-17 |
+--------------------------+--+
Is this intended to work? Can I list the partitions on a view just the way I would on a base table?