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

fix: fix cron in provisioning #669

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

Kevin101Zhang
Copy link
Contributor

@Kevin101Zhang Kevin101Zhang commented Apr 16, 2024

CRON statement functions was attempting to access a non-existent scoped property. Added syntax for dynamic sql generation to properly traverse.

Tested by setting cron fn_create_partition to trigger every 30 seconds.
Previously we would not see the Non Trackable functions and we would get the original error message below.
Now we are able to view the 2 Non Trackable functions and the row succeeds.

Screenshot 2024-04-16 at 7 39 10 PM Screenshot 2024-04-16 at 8 02 24 PM

Original error
ERROR: function fn_delete_partition(unknown, date, unknown, unknown) does not exist LINE 1: SELECT fn_delete_partition('kevin33_near_component_01.__logs... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

@Kevin101Zhang Kevin101Zhang linked an issue Apr 16, 2024 that may be closed by this pull request
@Kevin101Zhang Kevin101Zhang marked this pull request as ready for review April 16, 2024 23:46
@Kevin101Zhang Kevin101Zhang requested a review from a team as a code owner April 16, 2024 23:46
Copy link
Collaborator

@darunrs darunrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test error but otherwise good to go!

@morgsmccauley morgsmccauley merged commit 09cdcaa into main Apr 17, 2024
3 checks passed
@morgsmccauley morgsmccauley deleted the 668-fix-cron-statement-in-provisioning branch April 17, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix cron statement in provisioning
3 participants