bigquery_validator/bigquery_validator.py
def validate_query(self, templated_query):
        """Check if query passed as parameter is valid. If the query contains any Jinja templated params they will
        be converted to the associated param value if one exists.

        Parameters:
        templated_query (str): SQL query to be validated
        """
        try:
            formatted_query = self.render_templated_query(templated_query)
            querv_is_valid, message = self.dry_run_query(formatted_query)
            logging.info(f'Query is { "valid" if querv_is_valid else "invalid"}. {message}')
            return querv_is_valid, message
        except Exception as e:
            logging.error(e)
            return False, f"An error occurred while validating query - {templated_query}"
Check if query passed as parameter is valid. If the query contains any Jinja templated params they will
        be converted to the associated param value if one exists.

        Parameters:
        templated_query (str): SQL query to be validated
        
Check if query passed as parameter is valid. If the query contains any Jinja templated params they will
be converted to the associated param value if one exists.

templated_query (str): SQL query to be validated
Check if query passed as parameter is valid . If the query contains any Jinja templated params they will be converted to the associated param value if one exists . templated_query ( str ) : SQL query to be validated
def validate_query(self, templated_query):
        try:
            formatted_query = self.render_templated_query(templated_query)
            querv_is_valid, message = self.dry_run_query(formatted_query)
            logging.info(f'Query is { "valid" if querv_is_valid else "invalid"}. {message}')
            return querv_is_valid, message
        except Exception as e:
            logging.error(e)
            return False, f"An error occurred while validating query - {templated_query}"
def validate_query ( self , templated_query ) : try : formatted_query = self . render_templated_query ( templated_query ) querv_is_valid , message = self . dry_run_query ( formatted_query ) logging . info ( f'Query is { "valid" if querv_is_valid else "invalid"}. {message}' ) return querv_is_valid , message except Exception as e : logging . error ( e ) return False , f"An error occurred while validating query - {templated_query}"
Check if query passed as parameter is valid.
Check if query passed as parameter is valid .
"""Check if query passed as parameter is valid. If the query contains any Jinja templated params they will
        be converted to the associated param value if one exists.

        Parameters:
        templated_query (str): SQL query to be validated
        """
self
templated_query