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

1.6.6 -> 1.9 regression: "unexpected token" error for the "`" signs delimiting the when incremental clause #252

Closed BenBirt closed 4 years ago

BenBirt commented 4 years ago

https://dataform-users.slack.com/archives/CHMJK8MKM/p1597944866009900

BenBirt commented 4 years ago
config {
  type: "incremental",
}
SELECT
  *
FROM
  EXTERNAL_QUERY(
    "<external postgres db>",
    """
    SELECT
      id,
      updated_at
    FROM
      <some table>
    ${when(incremental(), `WHERE updated_at >= CURRENT_DATE - 1`)}
    """
  )