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.
11252 11253 11254 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11252 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. Name of the column.
Corresponds to the JSON property name
11235 11236 11237 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11235 def name @name end |
#transform_sql ⇒ String
Output only. The SQL expression used in the column transform.
Corresponds to the JSON property transformSql
11240 11241 11242 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11240 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"
]
Corresponds to the JSON property
type
11250 11251 11252 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11250 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11257 11258 11259 11260 11261 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11257 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 |