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

Unable to parse column in cast/try_cast with function #254

Closed
chezou opened this issue May 4, 2022 · 1 comment · Fixed by #255
Closed

Unable to parse column in cast/try_cast with function #254

chezou opened this issue May 4, 2022 · 1 comment · Fixed by #255
Assignees
Labels
enhancement New feature or request

Comments

@chezou
Copy link
Contributor

chezou commented May 4, 2022

When cast or try_cast has column in function, it won't be parsed.

Actual

$ sqllineage -l column -e "insert overwrite table tbl1 select try_cast(coalesce(col2, 0) as varchar) AS col1 from t1"
<default>.tbl1.col1 <- <default>.t1.coalesce

Expected

sqllineage -l column -e "insert overwrite table tbl1 select try_cast(coalesce(col2, 0) as varchar) AS col1 from t1"
<default>.tbl1.col1 <- <default>.t1.col2
@reata
Copy link
Owner

reata commented May 8, 2022

try_cast is something new to me, thanks for your input. We definitely need to improve on this part.

@reata reata closed this as completed in #255 May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants