DDL script file
Learn how to create the Data Definition Language (DDL) file corresponding to the workflow tasks of a Table to Table data operation.
🗺️ Overview
⎨⎬ Creation task
📹 DDL script video
{
"bq_table_description": "Iowa Liquor aggregation by store for 2019's sales",
"bq_table_clustering_fields": ["store_number"],
"bq_table_timepartitioning_field": "isoweek_monday",
"bq_table_schema": [{
"name": "isoweek_monday",
"type": "DATE",
"description": "Unique number assigned to the store who ordered the liquor."
},
{
"name": "isoweek_number",
"type": "INTEGER",
"description": "Name of store who ordered the liquor."
},
{
"name": "store_number",
"type": "STRING",
"description": "Unique number assigned to the store who ordered the liquor."
},
{
"name": "store_name",
"type": "STRING",
"description": "Name of store who ordered the liquor."
},
{
"name": "sale_dollars",
"type": "FLOAT",
"description": "sum of the 2019's sales for the store"
},
{
"name": "volume_sold_liters",
"type": "FLOAT",
"description": "sum of the volume sold in 2019 for the store in liters"
},
{
"name": "p_vodka",
"type": "FLOAT",
"description": "ratio of the sale for the vodka category"
},
{
"name": "p_whisky",
"type": "FLOAT",
"description": "ratio of the sale for the whisky category"
},
{
"name": "p_rum",
"type": "FLOAT",
"description": "ratio of the sale for the rum category"
},
{
"name": "p_liqueur",
"type": "FLOAT",
"description": "ratio of the sale for the liqueur category"
},
{
"name": "p_tequila",
"type": "FLOAT",
"description": "ratio of the sale for the tequila category"
},
{
"name": "p_schnapps",
"type": "FLOAT",
"description": "ratio of the sale for the schnapps category"
},
{
"name": "p_gin",
"type": "FLOAT",
"description": "ratio of the sale for the gin category"
},
{
"name": "p_cocktail",
"type": "FLOAT",
"description": "ratio of the sale for the cocktail category"
},
{
"name": "p_brandy",
"type": "FLOAT",
"description": "ratio of the sale for the brandy category"
},
{
"name": "p_spirit",
"type": "FLOAT",
"description": "ratio of the sale for the spirit category"
},
{
"name": "p_special",
"type": "FLOAT",
"description": "ratio of the sale for the special category"
}
]
}Parameters
Parameter
Description
Data types
Numeric types
Name
Description
Boolean type
Name
Description
String type
Name
Description
Bytes type
Name
Description
Time types
Name
Description
Last updated