Shiyan Xu created HUDI-7984:
-------------------------------

             Summary: Spark SQL should allow type promotion without using 
schema on read
                 Key: HUDI-7984
                 URL: https://issues.apache.org/jira/browse/HUDI-7984
             Project: Apache Hudi
          Issue Type: Bug
          Components: spark-sql
            Reporter: Shiyan Xu
             Fix For: 1.0.0


{code:java}
CREATE TABLE hudi_table (
    ts BIGINT,
    uuid STRING,
    rider INT,
    driver STRING,
    fare DOUBLE,
    city STRING
) USING HUDI
PARTITIONED BY (city);

alter table hudi_table alter column rider type BIGINT;

ALTER TABLE CHANGE COLUMN is not supported for changing column 'rider' with 
type 'IntegerType' to 'rider' with type 'LongType' {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to