pingcap / dbt-tidb

A dbt adapter for TiDB
Apache License 2.0
14 stars 9 forks source link

Add quote to column in create_table_as marco #9

Closed Daemonxiao closed 2 years ago

Daemonxiao commented 2 years ago

What problem does this PR solve?

If we don't add quotes, we will make some mistakes in particular column names. Such as "3jfio32 834", "@ivjo efji" and so on.

This is a wrong SQL sample without a quote.

create table t (fhii 34JIo@ char);

To correct it, just add a quote.

create table t (`fhii 34JIo@` char);

Check List

sre-bot commented 2 years ago

CLA assistant check
All committers have signed the CLA.