Skip to content

Comments

Spark: Ignore SQL comments when testing if command is Iceberg DDL - Backport to Spark 3.0#4497

Merged
szehon-ho merged 1 commit intoapache:masterfrom
kbendick:backport-spark-stored-procedure-comments-spark30
Apr 20, 2022
Merged

Spark: Ignore SQL comments when testing if command is Iceberg DDL - Backport to Spark 3.0#4497
szehon-ho merged 1 commit intoapache:masterfrom
kbendick:backport-spark-stored-procedure-comments-spark30

Conversation

@kbendick
Copy link
Contributor

@kbendick kbendick commented Apr 5, 2022

This backports #4396 to Spark 3.0

Allow for procedures to have leading comments when checking if the command is Iceberg specific DDL.

This allows for systems that add leading comments to SQL statements for metadata purposes, such as dbt, to work if the command in question is an Iceberg Spark Procedure.

@github-actions github-actions bot added the spark label Apr 5, 2022
@kbendick
Copy link
Contributor Author

kbendick commented Apr 5, 2022

This fixes this issue #4289 in Spark 3.0.

@kbendick kbendick force-pushed the backport-spark-stored-procedure-comments-spark30 branch from 5840200 to c3cc1a1 Compare April 5, 2022 20:10
@kbendick kbendick force-pushed the backport-spark-stored-procedure-comments-spark30 branch from c49ea06 to cb681da Compare April 5, 2022 20:12
Copy link
Contributor

@singhpk234 singhpk234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kbendick for the change :), LGTM !!

@szehon-ho szehon-ho merged commit 0b48f51 into apache:master Apr 20, 2022
@szehon-ho
Copy link
Member

Thanks @kbendick for change, @singhpk234 for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants