(self,
                source_table,
                source_dataset,
                destination_table,
                destination_dataset=None,
                create_disposition='CREATE_IF_NEEDED',
                write_disposition='WRITE_TRUNCATE')
return self.Insert(job_config)
Copies the contents and schema from one table to another.

    Documentation on copying tables can be found at:
      https://developers.google.com/bigquery/docs/tables#copyingtable
    Documentation on write/create dispositions can be found at:
      https://developers.google.com/bigquery/docs/reference/v2/jobs#importing

    Args:
      source_table: The name of the table to copy from.
      source_dataset: The dataset that contains the table to copy from.
      destination_table: The name of the table to copy into.
      destination_dataset: The dataset that will be copied into.  If not
          specified, source_dataset is used.
      create_disposition: Describes the behavior to take when the table does
          not already exist.  Defaults to 'CREATE_IF_NEEDED'.
      write_disposition: Describes the behavior to take when the table already
          exists.  Defaults to 'WRITE_TRUNCATE', which overwrites existing data.

    Raises:
      NoTableError: The source table did not exist.

    Returns:
      The reply JSON from the BigQuery request.
Copies the contents and schema from one table to another.
Copies the contents and schema from one table to another .
def CopyTable(self,
                source_table,
                source_dataset,
                destination_table,
                destination_dataset=None,
                create_disposition='CREATE_IF_NEEDED',
                write_disposition='WRITE_TRUNCATE'):
    """Copies the contents and schema from one table to another.

    Documentation on copying tables can be found at:
      https://developers.google.com/bigquery/docs/tables#copyingtable
    Documentation on write/create dispositions can be found at:
      https://developers.google.com/bigquery/docs/reference/v2/jobs#importing

    Args:
      source_table: The name of the table to copy from.
      source_dataset: The dataset that contains the table to copy from.
      destination_table: The name of the table to copy into.
      destination_dataset: The dataset that will be copied into.  If not
          specified, source_dataset is used.
      create_disposition: Describes the behavior to take when the table does
          not already exist.  Defaults to 'CREATE_IF_NEEDED'.
      write_disposition: Describes the behavior to take when the table already
          exists.  Defaults to 'WRITE_TRUNCATE', which overwrites existing data.

    Raises:
      NoTableError: The source table did not exist.

    Returns:
      The reply JSON from the BigQuery request.
    """
    destination_dataset = destination_dataset or source_dataset

    if not self.TableExists(dataset_name=source_dataset,
                            table_name=source_table):
      raise NoTableError(self.project_id, source_dataset, source_table)

    job_config = {
        'configuration': {'copy': {
            'sourceTable': {
                'projectId': self.project_id,
                'datasetId': source_dataset,
                'tableId': source_table
            },
            'destinationTable': {
                'projectId': self.project_id,
                'datasetId': destination_dataset,
                'tableId': destination_table
            },
            'createDisposition': create_disposition,
            'writeDisposition': write_disposition
        }}}

    return self.Insert(job_config)
def CopyTable ( self , source_table , source_dataset , destination_table , destination_dataset = None , create_disposition = 'CREATE_IF_NEEDED' , write_disposition = 'WRITE_TRUNCATE' ) : destination_dataset = destination_dataset or source_dataset if not self . TableExists ( dataset_name = source_dataset , table_name = source_table ) : raise NoTableError ( self . project_id , source_dataset , source_table ) job_config = { 'configuration' : { 'copy' : { 'sourceTable' : { 'projectId' : self . project_id , 'datasetId' : source_dataset , 'tableId' : source_table } , 'destinationTable' : { 'projectId' : self . project_id , 'datasetId' : destination_dataset , 'tableId' : destination_table } , 'createDisposition' : create_disposition , 'writeDisposition' : write_disposition } } } return self . Insert ( job_config )