重建外部表后,location 指定了数据位置,但是分区数据没有加载,可以使用msck命令修复分区信息。

msck repair table table_name;