hive分区内部表分区删除问题
时间: 2018-11-08来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
有一个内部表student,字段有name,sex,其中sex是分区字段,目前有两个分区,sex=1和sex=2.我在hdfs上hive内部表的默认目录中删除了sex=2的目录,然后执行select * from student;这会触发一个异常:
Error:Error while compiling statement:FAILED:SemanticException [Error 10041]:No partition predicate found for Alias "student" table "student"(state=42000,code=10041).
我想知道在这种情况下,如何能让查询语句正常执行.谢谢各位了!

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行