Open xushiyan opened 4 months ago
@codope any plan to resume the work? Updated the milestone/release date.
does this still wip? while i try to add some create table methods, just found this is a little chaos.
maybe i will try to refact that.
@codope @xushiyan
@gohalo Please go ahead with your refactoring. I can help with review. I had opened https://github.com/apache/hudi-rs/pull/59 to refactor error handling but it is incomplete and preferably we shall use thiserror. You can open a separate PR, and I will close mine in your favour.
Submit a pr, just replaced the anyhow package, but still have some problems to fix.
First, how to classified the errors.
Second, how to simplify the error generation or mapping process. thiserror
provide many macros for this, such as error
from
etc. But still have many situation to simplify, through some trait like Into
.
Use
thiserror
to define error enums to fit different error handling flows, and replaceanyhow::Error
usage.