hive table new field, modify field comment
(1) create test table:
use mart_flow_test;
create table if not exists mart_flow_test.detail_flow_test
(
union_id string comment ‘device unique id’
) comment ‘test table’
partitioned by (
partition_date string comment ‘log generation date’
) stored as orc;
(2) new field: use mart_flow_test;
alter table detail_flow_test add columns(original_union_id string);
(3) modification comment: use mart_flow_test;
alter table detail_flow_conversion_base_raw change column original_union_id original_union_id string COMMENT’ original device unique id ‘;
Read More:
- Errors in IntelliJ ieeasql statements and table names in @ table
- Solution to the problem that SQL database query result field contains new line character, which leads to copy to excel dislocation
- 1093 – You can’t specify target table ‘table’ for update in FROM clause
- “Hive metadata problem” hive.metastore.HiveMetaException : Failed to get schema version.
- The solution of comments are not permitted in JSON. (521) in vscode
- MySQL partitions the existing tables of the data table
- Use xx [‘xx ‘] = XX to set field value or does not support field: XXX
- Solution of duplicate entry ‘value’ for key ‘field name’ in MySQL
- Authentication token manipulation error appears in ubuntu18.04 password modification
- MySQL advanced — Explanation of ref field in explain information
- Modification method of starting value of MySQL auto increment ID
- Insufficient table space ORA-00604 unable to extend table SYS.AUD by 8192
- Bash modifies the file names in the specified folder through MAC terminal (batch modification)
- Modification scheme of binary files in dot matrix font library
- VScode: How to Fix “Comments are not permitted in JSON” issue
- MySQL error: column ‘ID’ in field list is ambiguous
- Invalid column reference when using round in hive
- The value of adding two fields of MySQL
- (element UI component table) how to add a style to a table
- Cause: java.sql.BatchUpdateException: Unknown column ‘xxx‘ in ‘field list‘