Reputation: 3418
In SQL Server we have a database, inside database we have schema and under that schema we have table, like DatabaseName.SchemaName.TableName
. And we also refer to Database as Catalog in SQL Server.
But in Spark, Catalog means an interface that we use to interact with Spark. I also noticed same result when I typed
spark.sql('show databases').show()
andspark.sql('show schemas').show()
Does database and schema mean same thing in Spark? If not what's the difference? In Spark, is it possible to have it the same way like SQL server has DatabaseName.Schema.TableName
?
Upvotes: 0
Views: 26
Reputation: 88852
From the docs
Please note that the usage of SCHEMAS and DATABASES are interchangeable and mean the same thing.
And CREATE TABLE supports only two-part names.
Upvotes: 1