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: 

Databricks SQL CREATE TABLE ParseException

Sid0610
New Contributor II

I am trying to use the following code to create a deltatable

%sql

CREATE TABLE rectangles(a INT, b INT, area INT GENERATED ALWAYS AS IDENTITY (START WITH 1, STEP BY 1))

I don't know why but I am always getting the ParseException error.

I tried all other combinations as well such as - CREATE TABLE rectangles(a INT, b INT, area INT GENERATED ALWAYS AS IDENTITY (1, 1)), etc

Error:

ParseException:

extraneous input 'IDENTITY' expecting '('(line 1, pos 67)

1 ACCEPTED SOLUTION

Accepted Solutions

fabio2352
Contributor
3 REPLIES 3

fabio2352
Contributor

Priyag1
Honored Contributor II

What is parse exception?

emiratesevisaon
New Contributor II

How can we use SQL for my website emiratesevisaonline.com backend date?

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