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

Column lineage does not work for CAST to Parameterized Data Type #329

Closed
azurewtl opened this issue Feb 10, 2023 · 1 comment · Fixed by #420
Closed

Column lineage does not work for CAST to Parameterized Data Type #329

azurewtl opened this issue Feb 10, 2023 · 1 comment · Fixed by #420
Labels
bug Something isn't working

Comments

@azurewtl
Copy link

I guess the issus is that "Type()" is recognized as a subquery, instead of a type in "CAST(col AS Type())"

Input SQL:

INSERT
     OVERWRITE tbl_dst(col1, col2)
SELECT
     CAST(name AS VARCHAR) AS col1,
     CAST(age AS VARCHAR(35)) AS col2,
FROM
     tbl_src

Expected Output:

<default>.tbl_dst.col1 <- name
<default>.tbl_dst.col2 <- age

Current Output:
<default>.tbl_dst.col1 <- name

@reata
Copy link
Owner

reata commented Feb 12, 2023

You're right. We don't support parameterized data type yet. Also decimal(18, 0) doesn't work while decimal works. It's the same reason behind.

This is a bug we should fix.

@reata reata added the bug Something isn't working label Feb 12, 2023
@reata reata changed the title Column lineage for CAST does not work for "Type(*)" syntax Column lineage does not work for CAST to Parameterized Data Type May 1, 2023
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.

2 participants