Skip to content

TableProps

Properties for defining a Table.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-maxcompute-table

Initializer

import ros_cdk_maxcompute
ros_cdk_maxcompute.TableProps(
  name: typing.Union[str, IResolvable],
  project: typing.Union[str, IResolvable],
  comment: typing.Union[str, IResolvable] = None,
  if_not_exists: typing.Union[bool, IResolvable] = None,
  lifecycle: typing.Union[typing.Union[int, float], IResolvable] = None,
  schema: typing.Union[IResolvable, SchemaProperty] = None,
  string_schema: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
name typing.Union[str, ros_cdk_core.IResolvable] Property name: Table name.
project typing.Union[str, ros_cdk_core.IResolvable] Property project: Project name, if not provided, will be the default project.
comment typing.Union[str, ros_cdk_core.IResolvable] Property comment: Table comment.
if_not_exists typing.Union[bool, ros_cdk_core.IResolvable] Property ifNotExists: If you create a table by using the name of an existing table and the parameter set to false, an error is returned.
lifecycle typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property lifecycle: Table's lifecycle.
schema typing.Union[ros_cdk_core.IResolvable, SchemaProperty] Property schema: Table schema.
string_schema typing.Union[str, ros_cdk_core.IResolvable] Property stringSchema: Create a table with field names and field type strings.

nameRequired

name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property name: Table name.


projectRequired

project: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property project: Project name, if not provided, will be the default project.


commentOptional

comment: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property comment: Table comment.


if_not_existsOptional

if_not_exists: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property ifNotExists: If you create a table by using the name of an existing table and the parameter set to false, an error is returned.

If you specify the if not exists parameter, a success message is returned when you create a table by using the name of an existing table. The success message is returned even if the schema of the existing table is different from that of the table you want to create. If you create a table by using the name of an existing table, the table is not created and the metadata of the existing table is not changed.


lifecycleOptional

lifecycle: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property lifecycle: Table's lifecycle.


schemaOptional

schema: typing.Union[IResolvable, SchemaProperty]

Property schema: Table schema.


string_schemaOptional

string_schema: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property stringSchema: Create a table with field names and field type strings.

Example: 'num bigint, num2 double', 'pt string'