Skip to content

In flinksql, there is a problem of partial updating of wide table fields #3814

@Initial-neko

Description

@Initial-neko

now:

+----+-------+-------+
| id | data1 | data2 |
+----+-------+-------+
|  1 |     2 |     3 |
|  2 |     3 |     4 |
+----+-------+-------+

insert INTO table(id,data1)values(1,3)

result:
+----+-------+-------+
| id | data1 | data2 |
+----+-------+-------+
|  1 |     3 |     null |
|  2 |     3 |     4 |
+----+-------+-------+

However, if I want to keep other fields unchanged and just update the specified field, I need to read this row of data.
Can someone give me some advice,How can I read it gracefully? Thanks!
insert INTO table(id,data1)values(1,3)
result like that

+----+-------+-------+
| id | data1 | data2 |
+----+-------+-------+
|  1 |     3 |     3 |
|  2 |     3 |     4 |
+----+-------+-------+

At present, my idea is to build a read request somewhere, but I don't know where to build such a request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions