示例#1
0
    def schema(self):
        """Schema for query results.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#schema

        :rtype: list of :class:`SchemaField`, or ``NoneType``
        :returns: fields describing the schema (None until set by the server).
        """
        return _parse_schema_resource(self._properties.get("schema", {}))
示例#2
0
    def schema(self):
        """Schema for query results.

        See:
        https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#schema

        :rtype: list of :class:`SchemaField`, or ``NoneType``
        :returns: fields describing the schema (None until set by the server).
        """
        return _parse_schema_resource(self._properties.get('schema', {}))
示例#3
0
 def _scrub_local_properties(self, cleaned):
     """Helper:  handle subclass properties in cleaned."""
     schema = cleaned.pop("schema", {"fields": ()})
     self.schema = _parse_schema_resource(schema)
示例#4
0
 def _scrub_local_properties(self, cleaned):
     """Helper:  handle subclass properties in cleaned."""
     schema = cleaned.pop('schema', {'fields': ()})
     self.schema = _parse_schema_resource(schema)