React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in Spark Sql by

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")) 

Click here to read more about DevOps

2 Answers

0 votes
by

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

Related questions

Madanswer
+1 vote
asked Jun 30, 2019 in Spark Sql by sourabh.er.1234
+1 vote
asked May 31, 2019 in NoSQL - Database Revolution by aaravkhandelwal.2018
...