by
Mado
• Valued Contributor II
- 9341 Views
- 4 replies
- 4 kudos
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.
- 9341 Views
- 4 replies
- 4 kudos
Latest Reply
Mado
Valued Contributor II
Hi @Kaniz Fatma​ I selected answer from @Kedar Deshpande​ as the best answer.
3 More Replies
by
Mado
• Valued Contributor II
- 775 Views
- 1 replies
- 3 kudos
Hi, Assume that I have created several tables in Databricks workspace. If two tables have similar names but stored in different folders, how I can read them by "spark.read.table". I ask this question because input to the "spark.read.table" is only ta...
- 775 Views
- 1 replies
- 3 kudos
Latest Reply
spark.read.table reads table registered in catalog/metastore. If you have multiple databases in metastore, just prefix table name with database name db.table