Hi to everyone, I have a problem to solve.
Is there a way to ignore omitted columns in case of update during an insert with dedup upsert?
For example:
CREATE TABLE ‘MyTab’ (
index_time TIMESTAMP,
ColA DOUBLE,
ColB DOUBLE,
ColC DOUBLE,
ColD DOUBLE
) timestamp(index_time) PARTITION BY DAY WAL
DEDUP UPSERT KEYS(index_time);
INSERT INTO MyTab (index_time, ColA, ColB, ColC, ColD)
VALUES
(‘2025-04-09 15:00:00.000’, 100, 101, 102, 103),
(‘2025-04-09 15:00:01.000’, 110, 111, 112, 113),
(‘2025-04-09 15:00:02.000’, 120, 121, 122, 123),
I have this result
2025-04-09T15:00:00.000000Z 100 101 102 103
2025-04-09T15:00:01.000000Z 110 111 112 113
2025-04-09T15:00:02.000000Z 120 121 122 123
I run this query
INSERT INTO MyTab (index_time, ColA, ColB, ColC)
VALUES (‘2025-04-09 15:00:00.000’, 200, 201, 202);
2025-04-09T15:00:00.000000Z 200 201 202 null
2025-04-09T15:00:01.000000Z 110 111 112 113
2025-04-09T15:00:02.000000Z 120 121 122 123
I would like to achieve this result
2025-04-09T15:00:00.000000Z 200 201 202 103
2025-04-09T15:00:01.000000Z 110 111 112 113
2025-04-09T15:00:02.000000Z 120 121 122 123
Thanks.