ho registertemptable
in Apache Spark
utilizzando Zeppelin
di seguito:Rimuovi tabelle temporanee da Apache SQL Spark
val hvacText = sc.textFile("...")
case class Hvac(date: String, time: String, targettemp: Integer, actualtemp: Integer, buildingID: String)
val hvac = hvacText.map(s => s.split(",")).filter(s => s(0) != "Date").map(
s => Hvac(s(0),
s(1),
s(2).toInt,
s(3).toInt,
s(6))).toDF()
hvac.registerTempTable("hvac")
Dopo che ho fatto con le mie domande con questo tabella temporanea, come faccio a rimuoverlo?
Ho controllato tutti i documenti e sembra che non stia arrivando da nessuna parte.
Qualche consiglio?
sqlc.dropTempTable ("HVAC") funziona. Quest'ultimo non lo fa. Grazie mille ! – Softwaremaker