Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CROSS JOIN UNNEST 血缘解析报错,可能要扩展 RelMdColumnOrigins.getColumnOrigins 方法实现,大佬有空支持下。 #129

Open
sutao168 opened this issue Apr 23, 2024 · 3 comments

Comments

@sutao168
Copy link

CREATE TABLE kafka_source (
id bigint,
data ARRAY<row<c1 bigint,c2 string>>
) WITH (
'connector' = 'kafka',
'properties.bootstrap.servers' = 'hadoop101:9092',
'topic' = 't1',
'properties.group.id' = 'g1',
'scan.startup.mode' = 'earliest-offset',
'format' = 'json'
);

CREATE TABLE sink_print (
id bigint,
c1 bigint,
c2 string
) WITH (
'connector' = 'print'
);

insert into sink_print
SELECT id, t.c1, t.c2
FROM kafka_source
CROSS JOIN UNNEST(data) AS t(c1,c2)
;

IMG20240423113658

@jeff-zou
Copy link

使用dev分支,我pull request的代码有解决这个问题。

@sutao168
Copy link
Author

sutao168 commented Apr 27, 2024 via email

jeff-zou added a commit to jeff-zou/flink-sql-lineage that referenced this issue May 10, 2024
@jeff-zou
Copy link

可以用这个的dev分支先:https://github.com/jeff-zou/flink-sql-lineage/tree/dev

HamaWhiteGG added a commit that referenced this issue May 10, 2024
#129 support cross join UNNEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants