我有以下非常简单的问题。
SELECT "test" FROM mydb.mytable
INNER JOIN yourdb.yourtable
ON yourtable.id = mytable.id LIMIT 10;
由于以下错误(表示语法错误)而失败:-
Error while compiling statement: FAILED: SemanticException MetaException(message:Exception thrown when executing query)
列id是bigdata类型。
令人惊讶的是,如果我保持查询的原样,但只是使用一个不同的表来代替mytable,mytable的模式与mytable完全相同。看起来hive没有显示有意义的错误。有人有线索吗?
要进一步增加混乱,请检查following:-
-- SUCCESS – All the data up to 24th Sep 2016
SELECT "test" AS col FROM mydb.mytable INNER JOIN yourdb.yourtable ON yourtable.id = mytable.id where mytable.id <= 2016092423 LIMIT 1;
-- SUCCESS – All the data after 24Th Sep 2016
SELECT "test" AS col FROM mydb.mytable INNER JOIN yourdb.yourtable ON yourtable.id = mytable.id where mytable.id >= 2016092423 LIMIT 1;
-- ERROR – All the data up to 25th Sep 2016
SELECT "test" AS col FROM mydb.mytable INNER JOIN yourdb.yourtable ON yourtable.id = mytable.id where mytable.id <= 2016092523 LIMIT 1;
这是完全矛盾的行为。前两个查询覆盖整个空间。考虑到前两个查询成功,第三个查询失败是完全令人惊讶的。
让我用一个picture:-
暂无答案!
目前还没有任何答案,快来回答吧!