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
The diffChangeLog command doesn't work for Snowflake functions #5753
Comments
Hello @LonwoLonwo ! Thanks for the issue. In fact the Function code is in liquibase-commercial that's why you can't find it. But anyway this is a bug in commercial code that when comparing the objects is generating a null structure for the non-existent function in the destination database - thus generating the null pointer. |
@LonwoLonwo This fix is on commercial, but I guess you can't see it: https://github.com/liquibase/liquibase-pro/pull/1638 |
Thank you @filipelautert! |
Hello @LonwoLonwo ! Are you able to give current master artifacts a try and see if it fixes the issue? https://github.com/liquibase/liquibase/actions/runs/8568825281/artifacts/1388234226 (from https://github.com/liquibase/liquibase/actions/runs/8568825281 run) |
Hello @filipelautert I'm sorry for not getting back to you sooner. I don't know how exactly I can use artifact files. |
@LonwoLonwo no problems! |
@LonwoLonwo I'll close this one as the fix in merged to master. We are planning to release next week so you'll be able to test, but if the problem persists please reopen this one. |
Great, thanks! |
Search first
Description
I have two schemas in my Snowflake database. These schemas contain functions. I have the Liquibase license key and use it during the diffChangeLog command generation. And my generation process throws this error:
As I can see in the code base - only Snowflake Procedures comparing is supported.
You have already all logic for procedures, you can create the copy for functions, The FUNCTIONS view as very close to PROCEDURES view.
Steps To Reproduce
Create schema TEST1.
And create schema TEST2.
Add simple functions in schema TEST1, like
Enable the diffChangeLog command for these two schemas (use TEST1 as a target).
Error occurs.
Expected/Desired Behavior
Result with one create function query.
Liquibase Version
4.26
Database Vendor & Version
Snowflake
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
Windows
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: