dataform-co / dataform-web-tracking

Dataform is a collaborative data modelling platform that enables analysts and engineers to manage complex data models in SQL
https://dataform.co
MIT License
2 stars 0 forks source link

Unexpected EOI when comment precedes post_operation #296

Open pwm1991 opened 3 years ago

pwm1991 commented 3 years ago

Dataform appends a ; to the statement before the post_operation block. However if the statement finishes with a comment, e.g. to describe the post_op, the comment is added to the end of the comment line and thus not in use.

The work around is to put comments in the post_op, but DF should recognise that the final line is commented out and handle accordingly.

statement -- Comment post_operations {

Leads to

Error: Syntax error: Expected end of input but got keyword CREATE at [29:1] statement -- Comment;