apache / datafusion-comet

Apache DataFusion Comet Spark Accelerator
https://datafusion.apache.org/comet
Apache License 2.0
550 stars 105 forks source link

feat: Use enum to represent CAST eval_mode in expr.proto #415

Open prashantksharma opened 3 weeks ago

prashantksharma commented 3 weeks ago

Which issue does this PR close?

Closes #361

Rationale for this change

The updates to expr.proto by using enums instead of strings, which prevents potential errors in type interpretation. Modifications in planner.rs and QueryPlanSerde.scala resolve issues found during compilation and style checks.

What changes are included in this PR?

How are these changes tested?

I have run

andygrove commented 1 week ago

@prashantksharma Do you need any assistance with this PR? Let me know if you have questions

prashantksharma commented 6 days ago

@prashantksharma Do you need any assistance with this PR? Let me know if you have questions

@andygrove Apologies, I will definitely finalize this PR based on your comments by May 31st, 2024.

PS: I have been little caught up with office work due to product launch at my current company.

prashantksharma commented 22 hours ago

@andygrove

Thank you so much for your suggestions and comments, and most importantly patience in helping me with this PR.

I have made the necessary changes and pushed to the same branch i.e issue-361-enum-for-eval_mode.

Kindly, let me know if there are any steps to be done for this PR from my side.