Jun 30, 2019 in Spark Sql
Q:

Which of these code snippet is the correct format to run SQL queries? 

(i)display(spark.sqlContext("select * from Fresco")) 

(ii)print(spark.sql("select * from Fresco")) 

(iii)display(spark.sql("select * from Fresco")) 

(iv)show(spark.sql("select * from Fresco")) 

2 Answers

0 votes
Jun 30, 2019

display(spark.sql("select * from Fresco")) 

0 votes
Feb 12, 2020

https://madanswer.com/2011/which-code-snippet-correct-format-run-sql-queries

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

+1 vote
Jun 30, 2019 in Spark Sql
...