We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> from sqllineage.runner import LineageRunner >>> sql_1="insert into new_names SELECT (((fname) || ' ') || (lname)) AS full_name FROM names;" >>> sql_2="insert into new_names SELECT (((fname)::text || ' '::text) || (lname)::text) AS full_name FROM names;" >>> LineageRunner(sql_1, 'redshift').print_column_lineage() <default>.new_names.full_name <- <default>.names.fname <default>.new_names.full_name <- <default>.names.lname >>> LineageRunner(sql_2, 'redshift').print_column_lineage() <default>.new_names.full_name <- <default>.names.fname >>>
The text was updated successfully, but these errors were encountered:
Thanks for reporting it. Bug confirmed. It's triggered when type cast used together with parenthesis.
I tried removing all parenthesis and it's working fine.
insert into new_names SELECT fname::text || ' '::text || lname::text AS full_name FROM names;
$ sqllineage -f test.sql --dialect=redshift -l column <default>.new_names.full_name <- <default>.names.fname <default>.new_names.full_name <- <default>.names.lname
Sorry, something went wrong.
This issue is fixed as a result of 6c646a5, where we fixed a separate issue while also optimize the column-from-parenthesis handling.
No branches or pull requests
The text was updated successfully, but these errors were encountered: