Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 06:26 AM
Hi,
I want to make a PySpark DataFrame from a Table. I would like to ask about the difference of the following commands:
spark.read.table(TableName)
&
spark.table(TableName)
Both return PySpark DataFrame and look similar. Thanks.
Labels:
- Labels:
-
Read Table
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 07:58 AM
There is no difference between spark.table & spark.read.table function.
Inside of spark.read.table is again calling spark.table function.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 06:21 AM
Hi @Kaniz Fatma
I selected answer from @Kedar Deshpande as the best answer.