alamb commented on issue #27953: URL: https://github.com/apache/datafusion/issues/27953#issuecomment-7352785326
> ClickHouse puts a version number in the aggregate state type, keeps old layouts readable forever, and gates behaviour changes behind a compatibility setting. Yeah DataFusion doesn't have any sort of compatibility guarantee like this. > For materialized views built on DataFusion, is there a recommended way to deal with results or state written by an older version other than rebuilding affected views? I think recomputing them (when they involve functions whose semantics have changed) is the only thing I know of > Is there a view on which DataFusion outputs should be stable across versions (aggregate state, sketches, proto plans)? Would a stable, versioned approx_distinct format be welcome upstream, or should projects that persist state bring their own UDAFs? > Is there appetite for a way to keep the old behaviour after a semantic change, similar to ClickHouse's compatibility setting, or for versioned plan serialization? In my mind, adding such guarantees puts additional requirements on contributions and reviewers to verify, and review bug fixes, etc so unless we have a significant number of committers who would be willing to take on the extra burden, I would be hesitant to try and add such guarantees. Downstream crates can of course take on the burden (e.g. by maintaining backwards compatible functions) -- but that is simply a shift of where the effort goes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
