【发布时间】:2015-12-18 23:54:40
【问题描述】:
我想我错过了一些东西,但不知道是什么。 我想使用特定的 sql 语句使用 SQLContext 和 JDBC 加载数据 喜欢
select top 1000 text from table1 with (nolock)
where threadid in (
select distinct id from table2 with (nolock)
where flag=2 and date >= '1/1/2015' and userid in (1, 2, 3)
)
我应该使用哪种 SQLContext 方法?我看到的示例总是指定表名和上下边距。
提前致谢。
【问题讨论】:
标签: apache-spark apache-spark-sql