Skip to content

Preview generates errors when SQL blocks are invloved #97

Open
@mtoy-googly-moogly

Description

@mtoy-googly-moogly
source: orig is table('bigquery:bigquery-public-data.google_cloud_release_notes.release_notes') {
  dimension: custom is 'CUSTOM'
}
query: first100 is orig -> { project: *; limit: 100 }
sql: to_sql is {
  connection: "bigquery"
  select: """
    SELECT *
    FROM (%{ ->first100 }% )
  """
}
source: back_to_malloy is from_sql(to_sql)
query: back_to_malloy -> { project: * }

Running the end query works, clicking "Preview" on "back_to_malloy" gets an error. SQL Blocks sit in the model in a weird way and however preview is generating a model to run the preview query, it is hitting into this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions