google/cloud/bigquery/client.py
def list_partitions(self, table, retry=DEFAULT_RETRY):
        """List the partitions in a table.

        :type table: One of:
                     :class:`~google.cloud.bigquery.table.Table`
                     :class:`~google.cloud.bigquery.table.TableReference`
        :param table: the table to list, or a reference to it.

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :rtype: list
        :returns: a list of time partitions
        """
        config = QueryJobConfig()
        config.use_legacy_sql = True  # required for '$' syntax
        rows = self.query_rows(
            'SELECT partition_id from [%s:%s.%s$__PARTITIONS_SUMMARY__]' %
            (table.project, table.dataset_id, table.table_id),
            job_config=config,
            retry=retry)
        return [row[0] for row in rows]
List the partitions in a table.

        :type table: One of:
                     :class:`~google.cloud.bigquery.table.Table`
                     :class:`~google.cloud.bigquery.table.TableReference`
        :param table: the table to list, or a reference to it.

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :rtype: list
        :returns: a list of time partitions
        
List the partitions in a table.
List the partitions in a table .
def list_partitions(self, table, retry=DEFAULT_RETRY):
        config = QueryJobConfig()
        config.use_legacy_sql = True  
        rows = self.query_rows(
            'SELECT partition_id from [%s:%s.%s$__PARTITIONS_SUMMARY__]' %
            (table.project, table.dataset_id, table.table_id),
            job_config=config,
            retry=retry)
        return [row[0] for row in rows]
def list_partitions ( self , table , retry = DEFAULT_RETRY ) : config = QueryJobConfig ( ) config . use_legacy_sql = True rows = self . query_rows ( 'SELECT partition_id from [%s:%s.%s$__PARTITIONS_SUMMARY__]' % ( table . project , table . dataset_id , table . table_id ) , job_config = config , retry = retry ) return [ row [ 0 ] for row in rows ]
List the partitions in a table.
List the partitions in a table .
"""List the partitions in a table.

        :type table: One of:
                     :class:`~google.cloud.bigquery.table.Table`
                     :class:`~google.cloud.bigquery.table.TableReference`
        :param table: the table to list, or a reference to it.

        :type retry: :class:`google.api_core.retry.Retry`
        :param retry: (Optional) How to retry the RPC.

        :rtype: list
        :returns: a list of time partitions
        """ # required for '$' syntax
a list of time partitions
a list of time partitions
list
self
table
the table to list, or a reference to it.
the table to list or a reference to it .
retry
(Optional) How to retry the RPC.
( Optional ) How to retry the RPC .