
Explanation:
The correct syntax for querying a Delta table using PySpark's DataFrame API is Spark.read.table("table_name"). This method allows you to read a table by name, and it is compatible with Delta tables as well as other types of tables registered in Spark.
Which of the following statements correctly queries a Delta table using the PySpark DataFrame API?
A
Spark.read.format("delta").LoadTableAs("table_name")
B
Spark.read.table("table_name")
C
Spark.read.mode("delta").table("table_name")
D
Spark.read.format("delta").TableAs("table_name")
E
Spark.read.table.delta("table_name")
No comments yet.