ETL assistant capabilities | |
| In the goods table of the product database, rename the 'product_name' field to 'item_name'. |
| In the contacts table of the customer database, concatenate the first_name and last_name columns into a full name. |
| |
| Parse the format of the string item_info in the shopping_item table as json, and save the result to the item_info_json column. |
| For table A or table B, if created_at is earlier than '2024-06-30', the record will be deleted. |
| For the user_info table, replace the 8th to 11th digits of the mobile_phone field with asterisks, and also replace the first 2 digits of the uid column with asterisks. |
Type conversion + Data mapping | Convert the color field of type SET('red','blue','green','yellow') in the products table to a string, where 1→red, 2→blue, 3→red,blue, and 4→green. |
Conditional branch + Field addition | For the user_info table, add the memo column. If 60 > age >= 30, set memo to middle-aged; if age >= 60, set memo to old age; if 30 > age >= 18, set memo to youth; otherwise, set memo to juvenile. |
Data filtering + Time analysis | Add a column process_year to the processlog table in the orders database, and the value is the year of the current time. Convert the create_time column from the string format 'yyyyMMddHHmmss' to the standard time format 'yyyy-MM-dd HH:mm:ss'. |
Bit operation + Field addition | For the user_info table, add the is_vip and is_svip columns. Bitwise parses user_attr. If the 3rd digit is 1, set is_vip to true. If the 5th digit is 1, set is_svip to true; otherwise, set it to false. |
Modify indexes in the database consolidation scenario | For the orders table in the cn_ecommerce and us_ecommerce databases, remove the original primary key id, and use order_uuid as the new primary key. |
| For the user_wallets table in the east and west databases, remove the original primary key id, add a field region where the value of region matches the name of the database, and set region + user_id as the primary key. |
Data filtering + Data desensitization | In the orders table of the cn_users database, filter out orders where order_status is not 1, and de-sensitize id_card by retaining only the first three and last four digits, replacing the middle part with *. |
Use Hash for data desensitization | Convert the identity card number id_card field in the user table user_info to an MD5 hash value. |