cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

chhavibansal
by New Contributor II
  • 1543 Views
  • 4 replies
  • 1 kudos

ANALYZE TABLE showing NULLs for all statistics in Spark

var df2 = spark.read .format("csv") .option("sep", ",") .option("header", "true") .option("inferSchema", "true") .load("src/main/resources/datasets/titanic.csv")   df2.createOrReplaceTempView("titanic") spark.table("titanic").cach...

  • 1543 Views
  • 4 replies
  • 1 kudos
Latest Reply
chhavibansal
New Contributor II
  • 1 kudos

can you share what the *newtitanic* is I think that you would have done something similarspark.sql("create table newtitanic as select * from titanic")something like this works for me, but the issue is i first make a temp view then again create a tab...

  • 1 kudos
3 More Replies
auser85
by New Contributor III
  • 1035 Views
  • 4 replies
  • 4 kudos

Resolved! Cache Select on Temp Table?

How might I cache a temp table?The documentation suggests it is possible: https://docs.databricks.com/spark/latest/spark-sql/language-manual/delta-cache.htmlConsider the following on DBR 10.5 and Spark 3.2.1:```%pythondf.createOrReplaceTempView("chan...

  • 1035 Views
  • 4 replies
  • 4 kudos
Latest Reply
auser85
New Contributor III
  • 4 kudos

Thank you! The newer documentation does indeed work for me.

  • 4 kudos
3 More Replies
Labels