cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Delta live tables target schema

shagun
New Contributor III

The first time i run my delta live table pipeline after setup, I get this error on starting it :-

------------------------------------

org.apache.spark.sql.catalyst.parser.ParseException: 

Possibly unquoted identifier my-schema-name detected. Please consider quoting it with back-quotes as `my-schema-name`(line 1, pos 34)

== SQL ==

CREATE DATABASE IF NOT EXISTS my-schema-name

----------------------------------^^^

at org.apache.spark.sql.errors.QueryParsingErrors$.unquotedIdentifierError(QueryParsingErrors.scala:382)

at org.apache.spark.sql.catalyst.parser.PostProcessor$.exitErrorIdent(ParseDriver.scala:388)

at

--------------------------------------------

The pipeline works fine, if i leave the target schema field blank and run the pipeline.

I then update the pipeline with target schema my-schema-name and then successive pipeline updates are successful. But everytime i run the pipeline 1st time after setting it up, I get the above errror.

1 ACCEPTED SOLUTION

Accepted Solutions

shagun
New Contributor III

Hey .. so the problem is fixed now. The issue was use of "-" in target schema name. When i changed it from "my-schema-name" to "my_schema_name" it works fine.

View solution in original post

3 REPLIES 3

Anonymous
Not applicable

Hi @Shagun Bhardwaj​ 

Great to meet you, and thanks for your question!

Let's see if your peers in the community have an answer to your question. Thanks.

shagun
New Contributor III

Hey .. so the problem is fixed now. The issue was use of "-" in target schema name. When i changed it from "my-schema-name" to "my_schema_name" it works fine.

BenTendo
New Contributor II

This still errors on internal databricks spark/python code like

deltaTable.history()


@shagun wrote:

The first time i run my delta live table pipeline after setup, I get this error on starting it :-

------------------------------------

org.apache.spark.sql.catalyst.parser.ParseException: 

Possibly unquoted identifier my-schema-name detected. Please consider quoting it with back-quotes as `my-schema-name`(line 1, pos 34)

 

== SQL ==

CREATE DATABASE IF NOT EXISTS my-schema-name

----------------------------------^^^

 

at org.apache.spark.sql.errors.QueryParsingErrors$.unquotedIdentifierError(QueryParsingErrors.scala:382)

at org.apache.spark.sql.catalyst.parser.PostProcessor$.exitErrorIdent(ParseDriver.scala:388)

at

--------------------------------------------

The pipeline works fine, if i leave the target schema field blank and run the pipeline.

I then update the pipeline with target schema my-schema-name and then successive pipeline updates are successful. But everytime i run the pipeline 1st time after setting it up, I get the above errror.


Please fix! or just support dashes!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group