QuestionQ126

VerifiedDevelopment and Ingestion

A data engineer needs to create a table in Databricks using data from their organization’s existing SQLite database.

They run the following command:

Question Image

Which of the following lines of code fills in the above blank to successfully complete the task?

Explanation

Apache Spark uses the JDBC data source to connect to relational databases including SQLite, MySQL, PostgreSQL, and others. The format string 'org.apache.spark.sql.jdbc' specifies the JDBC data source; the actual JDBC driver (e.g., org.sqlite.JDBC) is configured separately via options. The other options are not valid Spark data source formats.

Community Discussion

No comments yet. Be the first to start the discussion!