【发布时间】:2021-10-12 00:12:18
【问题描述】:
是否可以使用 where 子句获取样本 n 行查询?
我尝试使用下面的 tablesample 函数,但最终只获得了第一个分区“2021-09-14”中的记录。 P
select * from (select * from table where ts in ('2021-09-14', '2021-09-15')) tablesample(100行)
【问题讨论】:
标签: apache-spark apache-spark-sql