This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
Replies: 3 comments
-
How do you think? @Xuanwo @liurenjie1024 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Makes sense, let's do this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, I think returning error in open makes more sense. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I find that the
current_table_metadata
interface will checkself.current_version
and return "table metadata not loaded yet" when it's 0.But I find that it will call
load
automatically in theopen
oropen_with_op
. So I guesss the error will occur in this case:self.current_version = metadata.last_updated_ms; // metadata.last_updated_ms = 0
And we hope user to fix this error like this:
But why not directly return error in
open
when we can't load a valid current version. And we can assert current_version is valid incurrent_table_metadata
. LikeI think this way is more friendly for user🤔 When it open succeesfully, it can convince that the version is valid. It don't need to check and process error every time in later operation.
Beta Was this translation helpful? Give feedback.
All reactions