Open nextdreamblue opened 6 months ago
We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!
Steps to reproduce the behavior (Required)
CREATE TABLE
test1
(k1
int(11) NULL COMMENT "",k2
int(11) NULL COMMENT "",k3
varchar(300) NULL COMMENT "",k4
varchar(30) NULL COMMENT "",k5
date NULL COMMENT "",new_column0
int(11) NULL DEFAULT "0" COMMENT "" ) ENGINE=OLAP UNIQUE KEY(k1
,k2
,k3
) COMMENT "OLAP" DISTRIBUTED BY HASH(k1
,k2
,k3
) BUCKETS 1 PROPERTIES ( "compression" = "LZ4", "fast_schema_evolution" = "true", "replicated_storage" = "true", "replication_num" = "1" );insert into test1 values(1,2,'a','b','2020-01-01');
by java prepare stmt preparedStatement = connect.prepareStatement("select * from test1 where k2 = ? and k3 = ?"); preparedStatement.setString(1, "2"); preparedStatement.setString(2, "a"); stmt.execute("ALTER table test1 ADD COLUMN new_column0 INT default \"0\";"); stmt.execute("INSERT INTO test1 VALUES(2, 3, \"aa\", \"bb\", \"2030-01-02\", 1)"); preparedStatement.setString(1, "3"); preparedStatement.setString(2, "aa"); // 执行查询 resultSet = preparedStatement.executeQuery(); will get exception by java
Expected behavior (Required)
exec pareparestmt success
Real behavior (Required)
failed
StarRocks version (Required)
select current_version()