Class: Google::Apis::BigqueryV2::TransformColumn
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TransformColumn
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Information about a single transform column.
Instance Attribute Summary collapse
-
#name ⇒ String
Output only.
-
#transform_sql ⇒ String
Output only.
-
#type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransformColumn
constructor
A new instance of TransformColumn.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransformColumn
Returns a new instance of TransformColumn.
11295 11296 11297 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11295 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. Name of the column.
Corresponds to the JSON property name
11277 11278 11279 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11277 def name @name end |
#transform_sql ⇒ String
Output only. The SQL expression used in the column transform.
Corresponds to the JSON property transformSql
11282 11283 11284 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11282 def transform_sql @transform_sql end |
#type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument. Examples include: *
INT64: "typeKind": "INT64"
* ARRAY: "typeKind": "ARRAY", "
arrayElementType":
"typeKind": "STRING" * STRUCT>:
"typeKind": "STRUCT",
"structType":
"fields": [ "name": "x", "type":
"typeKind": "STRING",
"name": "y", "type":
"typeKind": "ARRAY", "arrayElementType": "typeKind": "
DATE"
]
* RANGE:
"typeKind": "RANGE", "rangeElementType":
"
typeKind": "DATE"
Corresponds to the JSON property
type
11293 11294 11295 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11293 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11300 11301 11302 11303 11304 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11300 def update!(**args) @name = args[:name] if args.key?(:name) @transform_sql = args[:transform_sql] if args.key?(:transform_sql) @type = args[:type] if args.key?(:type) end |