modules/test_user_dashboard/app/services/test_user_dashboard/big_query.rb
def delete_from(table_name:, row_identifier: 'account_uuid')
      sql = "DELETE FROM `#{PROJECT}.#{DATASET}.#{table_name}` " \
            "WHERE #{row_identifier} IS NOT NULL"

      bigquery.query sql do |config|
        config.location = 'US'
      end
    rescue => e
      log_exception_to_sentry(e)
    end
# BigQuery requires a row indentifier in DELETE FROM statements
BigQuery requires a row indentifier in DELETE FROM statements
BigQuery requires a row indentifier in DELETE FROM statements
def delete_from(table_name:, row_identifier: 'account_uuid')
      sql = "DELETE FROM `#{PROJECT}.#{DATASET}.#{table_name}` " \
            "WHERE #{row_identifier} IS NOT NULL"
      bigquery.query sql do |config|
        config.location = 'US'
      end
    rescue => e
      log_exception_to_sentry(e)
    end
def delete_from ( table_name : , row_identifier : 'account_uuid' ) sql = "DELETE FROM `#{PROJECT}.#{DATASET}.#{table_name}` " "WHERE #{row_identifier} IS NOT NULL" bigquery . query sql do | config | config . location = 'US' end rescue => e log_exception_to_sentry ( e ) end
BigQuery requires a row indentifier in DELETE FROM statements
BigQuery requires a row indentifier in DELETE FROM statements
table_name
row_identifier