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
[ ] added tests for new functionality if applicable
There was no test yet for the cte_name method and I didn't see the need in basically testing that the replace method works correctly. But let me know if I should add one.
[x] added an entry for changes to the unreleased changes of CHANGELOG.md
[x] added documentation for new functionality if applicable
[x] have performed a self-review of my own code
[x] have commented my code, particularly in hard-to-understand areas
[x] New and existing unit tests pass locally with my changes
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
cte_name
method and I didn't see the need in basically testing that the replace method works correctly. But let me know if I should add one.