DeepLcom / sql-mock

A Python library to test your SQL models using mocked input data
MIT License
33 stars 5 forks source link

replacing hyphens in MockTableMeta cte_name #32

Closed mcnick closed 8 months ago

mcnick commented 8 months ago

What problem does this PR solve

Some table references can contain hyphens, e.g. when explicitly referencing BigQuery's project name. When creating mock data CTEs these hyphens are not replaced causing syntax errors.

What changed

Hyphens in MockTableMeta.cte_name are replaced by underscores.

Checklist