How to use the pybigquery.sqlalchemy_bigquery.BigQueryCompiler function in pybigquery

To help you get started, we’ve selected a few pybigquery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mxmzdlv / pybigquery / pybigquery / sqlalchemy_bigquery.py View on Github external
def visit_select(self, *args, **kwargs):
        """
        Use labels for every column.
        This ensures that fields won't contain duplicate names
        """

        args[0].use_labels = True
        return super(BigQueryCompiler, self).visit_select(*args, **kwargs)