You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a rails app, with existing Clickhouse schema w/a function defined, a rails db:schema:load will not always succeed; this is because the function may already exist.
Guard the CREATE FUNCTION statement with IF NOT EXISTS; this would prevent trying to create the function, however, it also does not guarantee that the function is up-to-date with the schema
Use CREATE OR REPLACE FUNCTION instead. This has the benefit of ensuring the function is up-to-date with the schema