【发布时间】:2020-07-10 09:03:35
【问题描述】:
我使用带有 Apache Spark 2.4 的 Databricks 测试了以下查询:
%sql
<step1>
create temporary view temp_view_t
as select 1 as no, 'aaa' as str;
<step2>
insert into temp_view_t values (2,'bbb');
然后我收到此错误消息。
SQL 语句错误:AnalysisException: Inserting into an RDD-based table is not allowed.;; 'InsertIntoTable 项目 [1 AS no#824, aaa AS str#825], false, false +- 本地关系 [col1#831, col2#832]
我的问题是
- spark中不能插入临时表吗?
- 如何在 spark sql 中创建临时数据?
谢谢。
【问题讨论】: