Closed caicancai closed 3 months ago
cc @wangrunji0408 If you have time, could you help me review this PR? Thank you.
@wangrunji0408 PATL, thank you
@wangrunji0408 I would like to ask a question, can egg+sql optimization be extracted into a separate framework and then integrated with calcite? Do you think this is feasible?
can egg+sql optimization be extracted into a separate framework and then integrated with calcite? Do you think this is feasible?
I'm not sure as the Calcite is written in Java while egg is designed for Rust. Besides, what's the purpose of doing this? As far as I know, the Calcite itself is a framework for optimization. I have always thought of egg as a Rust alternative of Calcite.
I'm not sure as the Calcite is written in Java while egg is designed for Rust. Besides, what's the purpose of doing this? As far as I know, the Calcite itself is a framework for optimization. I have always thought of egg as a Rust alternative of Calcite.
I think it is a bit complicated to expand an optimization rule in Calcite at present, and it is not as convenient as egg. My original intention is to make Calcite more convenient to use.
I noticed that risinglight uses egg for CBO optimization, but it looks violent at the moment. I will try to optimize it.