
Explanation:
spark.table("sales") resolves a catalog table and returns a PySpark DataFrame. SQL can also be executed from Python with spark.sql("SELECT * FROM sales"), but spark.sql("sales") is not a complete SQL query, and spark.delta.table is not the standard API.
Which PySpark command can be used to access the registered Delta table sales as a DataFrame?
A
SELECT * FROM sales
B
There is no way to share data between PySpark and SQL.
C
spark.sql("sales")
D
spark.delta.table("sales")
E
spark.table("sales")
No comments yet.