在 apache zeppelin 中对条形图值进行排序

Ash*_*wty 5 scala apache-spark apache-zeppelin

我在 EMR 上使用 Zeppelin v0.5.6。我无法按我绘制的指标对条形图进行排序。作为一个虚拟示例,我希望条形图显示 col2 排序 -

sc.parallelize(Range(0,10).map(e=>(e,e*e))).toDF("col1","col2").registerTempTable("temptable")

%sql select * from temptable order by col2 asc
Run Code Online (Sandbox Code Playgroud)

或者

%sql select * from temptable order by col2 desc

对生成的图表没有影响。我错过了什么?

谢谢!

小智 0

不确定您现在需要答案,但仍在为其他人发布。您在美元符号中遇到一些问题,请尝试通过键盘输入并首先执行第一行,并确保您没有单击表格。

%sql select * from temptable order by col2 asc %sql select * from temptable order by col2 asc