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.
11320 11321 11322 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11320 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. Name of the column.
Corresponds to the JSON property name
11302 11303 11304 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11302 def name @name end |
#transform_sql ⇒ String
Output only. The SQL expression used in the column transform.
Corresponds to the JSON property transformSql
11307 11308 11309 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11307 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
11318 11319 11320 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11318 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11325 11326 11327 11328 11329 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11325 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 |