Skip to content

Commit

Permalink
feat: [google-cloud-datacatalog] Add RANGE type to Data Catalog (#12457)
Browse files Browse the repository at this point in the history
BEGIN_COMMIT_OVERRIDE

feat: Add RANGE type to Data Catalog

END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 615521436

Source-Link:
googleapis/googleapis@65277dd

Source-Link:
googleapis/googleapis-gen@97ec9b9
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiI5N2VjOWI5YThkNWUxN2U0MTU1YzNhZjI3MzU3ZGIxMzkzYTEzNTU1In0=

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: ohmayr <omairnaveed@ymail.com>
  • Loading branch information
4 people committed Mar 15, 2024
1 parent 9b24fd1 commit d60ef17
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Expand Up @@ -91,6 +91,15 @@ class ColumnSchema(proto.Message):
Looker specific column info of this column.
This field is a member of `oneof`_ ``system_spec``.
range_element_type (google.cloud.datacatalog_v1.types.ColumnSchema.FieldElementType):
Optional. The subtype of the RANGE, if the type of this
field is RANGE. If the type is RANGE, this field is
required. Possible values for the field element type of a
RANGE include:
- DATE
- DATETIME
- TIMESTAMP
gc_rule (str):
Optional. Garbage collection policy for the
column or column family. Applies to systems like
Expand Down Expand Up @@ -156,6 +165,20 @@ class LookerColumnType(proto.Enum):
enum="ColumnSchema.LookerColumnSpec.LookerColumnType",
)

class FieldElementType(proto.Message):
r"""Represents the type of a field element.
Attributes:
type_ (str):
Required. The type of a field element. See
[ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
"""

type_: str = proto.Field(
proto.STRING,
number=1,
)

column: str = proto.Field(
proto.STRING,
number=6,
Expand Down Expand Up @@ -196,6 +219,11 @@ class LookerColumnType(proto.Enum):
oneof="system_spec",
message=LookerColumnSpec,
)
range_element_type: FieldElementType = proto.Field(
proto.MESSAGE,
number=19,
message=FieldElementType,
)
gc_rule: str = proto.Field(
proto.STRING,
number=11,
Expand Down
Expand Up @@ -37,7 +37,7 @@ class UsageStats(proto.Message):
- The usage stats only include BigQuery query jobs
- The usage stats might be underestimated, e.g. wildcard table
references are not yet counted in usage computation
https://cloud.google.com/bigquery/docs/querying-wildcard-tables
https://cloud.google.com/bigquery/docs/querying-wildcard-tables
Attributes:
total_completions (float):
Expand Down

0 comments on commit d60ef17

Please sign in to comment.