cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

PARSE_SYNTAX_ERROR: Syntax error at or near 'VACUUM'

Dicer
Valued Contributor

I tried to VACUUM a delta table, but there is a Syntax error.

Here is the code:

%sql
set spark.databricks.delta.retentionDurationCheck.enabled = False
 
VACUUM test_deltatable

1 ACCEPTED SOLUTION

Accepted Solutions

Ravi
Valued Contributor
Valued Contributor

@Cheuk Hin Christophe Poon​ Missing semi-colon at end of line 2?

%sql
set spark.databricks.delta.retentionDurationCheck.enabled = False;
 
VACUUM test_deltatable

View solution in original post

2 REPLIES 2

Ravi
Valued Contributor
Valued Contributor

@Cheuk Hin Christophe Poon​ Missing semi-colon at end of line 2?

%sql
set spark.databricks.delta.retentionDurationCheck.enabled = False;
 
VACUUM test_deltatable

Dicer
Valued Contributor

I asked a stupid question😂 I forgot to add ;

This one works

%sql
set spark.databricks.delta.retentionDurationCheck.enabled = False;
 
VACUUM test_deltatable;

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.