cloudera - 将所有属性更改为大写

cloudera - change all attributes into uppercase

我有一个变量,其属性有时以小写形式插入,然后 tableau 将其读取为两种不同的情况,但实际上并非如此。所以所有的属性都必须是大写的,我还没有找到在 Cloudera 中如何做到这一点的解决方案。

示例:

参加






















所以可能是一个 set 语句,但是在创建 table 时是如何完成的:

CREATE TABLE new
STORED AS PARQUET AS
SELECT 
cust_no, 
statement, 
attended
from old

如何在 create a table 子句中更改它? 非常感谢

参考:https://www.w3schools.com/sql/func_sqlserver_upper.asp

CREATE TABLE new
STORED AS PARQUET AS
SELECT 
upper(cust_no), 
upper(statement), 
upper(attended)
from old

仅将 upper 添加到您希望将其设为大写的那些列