通过SuperSet(apache孵化器)运行Hive查询后,我遇到了一个奇怪的问题:
SELECT
date,
sum(1) visits,
sum(price) revenue
FROM
visits
WHERE
date BETWEEN '2017-07-21' AND '2017-07-25'
AND country = 'US'
GROUP BY
date,
browser
我收到的错误可以在我运行超集的终端(运行ubuntu的虚拟机虚拟机虚拟机)中被捕获:
Traceback (most recent call last):
File "/home/userxx/venv/local/lib/python2.7/site-packages/superset/sql_lab.py", line 182, in execute_sql
db_engine_spec.handle_cursor(cursor, query, session)
File "/home/userxx/venv/local/lib/python2.7/site-packages/superset/db_engine_specs.py", line 726, in handle_cursor
resp = cursor.fetch_logs()
File "/home/userxx/venv/local/lib/python2.7/site-packages/superset/db_engines/hive.py", line 34, in fetch_logs
response.results.rows, 'expected data in columnar format'
AssertionError
有趣的是,当日期为7月21日 - 7月24日时,它正常工作。我认为它必须做w /内存,但是在故事中添加浏览器(作为一个选项组)并没有改变行为(我的逻辑是添加它会破坏查询,即使是7/21 - 7/24期间由于行数增加了。)
毋庸置疑,从例如 SQL Developer Tool 。
提前致谢!
答案 0 :(得分:0)
我的版本是0.18.x,问题在0.19
中消失了