• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Spark Sql by
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
by

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

0 votes
by

Related questions

+1 vote
asked Jun 30, 2019 in Spark Sql by anonymous
+1 vote
+1 vote
asked May 31, 2019 in NoSQL by aaravkhandelwal.2018
...