Apache Spark SQL是否支持與Oracle的MERGE SQL子句類似的MERGE子句?Apache Spark SQL是否支持MERGE子句?
MERGE into <table> using (
select * from <table1>
when matched then update...
DELETE WHERE...
when not matched then insert...
)
Apache Spark SQL是否支持與Oracle的MERGE SQL子句類似的MERGE子句?Apache Spark SQL是否支持MERGE子句?
MERGE into <table> using (
select * from <table1>
when matched then update...
DELETE WHERE...
when not matched then insert...
)
它沒有。截至目前(未來可能會發生變化),Spark不支持UPDATES
,DELETES
或任何其他記錄修改變體。
它只能覆蓋現有存儲(根據來源的不同實現)或附加簡單的INSERT
。