دنبال کننده ها

۱۳۹۶ آبان ۹, سه‌شنبه

apache spark - Scala, can you view multiple tables with createOrReplaceTempView

[ad_1]



New to Scala
I'm playing with DataFrames, but I ran into a problem:



df.createOrReplaceTempView("Table1")
df.createOrReplaceTempView("Table2")
spark.sql("SELECT * from Table1").show()


This doesn't work since I can't createOrReplaceTempView for multiple tables, is there a way to use multiple data tables for queries with DataFrames?



I have tried giving values to both tables, didn't work either.




[ad_2]

لینک منبع