Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class UniversalSet(object):
"""
Set containing everything
https://github.com/dropbox/PyHive/blob/master/pyhive/common.py
"""
def __contains__(self, item):
return True
class BigQueryIdentifierPreparer(IdentifierPreparer):
"""
Set containing everything
https://github.com/dropbox/PyHive/blob/master/pyhive/sqlalchemy_presto.py
"""
reserved_words = UniversalSet()
def __init__(self, dialect):
super(BigQueryIdentifierPreparer, self).__init__(
dialect,
initial_quote="`",
)
def quote_column(self, value):
"""
Quote a column.
Fields are quoted separately from the record name.
"""
parts = value.split('.')
return '.'.join(self.quote_identifier(x) for x in parts)