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

[Bug] [Lineage] can't open sql lineage when use global variable #4099

Closed
2 of 3 tasks
naah69 opened this issue Dec 30, 2024 · 2 comments · Fixed by #4106
Closed
2 of 3 tasks

[Bug] [Lineage] can't open sql lineage when use global variable #4099

naah69 opened this issue Dec 30, 2024 · 2 comments · Fixed by #4106
Labels
Bug Something isn't working

Comments

@naah69
Copy link

naah69 commented Dec 30, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

sql lineage error when we use global variable.
image
image
image

What you expected to happen

sql lineage work well

How to reproduce

  1. use global variable in sql
  2. open sql lineage in job detail page

Anything else

image: /dinky-standalone-server:1.2.0-flink1.20

Version

1.2.0

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@naah69 naah69 added Bug Something isn't working Waiting for reply Waiting for reply labels Dec 30, 2024
@MactavishCui
Copy link
Contributor

MactavishCui commented Dec 31, 2024

The reason of this bug is that JobInstanceServiceImpl.getLineage uses the default executor config to build a executor, whose variables field is null. In this case, variables cannot be parsed correctly.
Query enabled variables from database and Initialize a new config object with them can solve this problem.

@chenlb
Copy link
Contributor

chenlb commented Jan 2, 2025

明天也遇到同样的 bug 。@MactavishCui 已经修复了,点赞👍。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants