select dept,count(distinct emp_id) from emp_log group by dept; 改性1
用collect_list代替distinct进行测试。1446976653619_0043_1_02_000282, diagnostics=[TaskAttempt 0 failed, info=[Error: Failure while running task:java.lang.RuntimeExcepti
我的Java输入String str = "aa 2 xx 'b cc dd e' -o se '4-5'" 我希望输出由空格分隔的标记,单引号中的空格除外。因此,输出应该是: aaxx-o'4-5' 我可以通过在空格上拆分字符串,然后合并像'b,cc,dd,e‘这样的字符串序列来得到'b cc dd e',但是我想要一个更好的方法