You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Xuanwo I've started looking into this (just started yesterday taking a look at the codebase in general) - how would you go about unit testing the catalog trait for hms? The integration test could probably be done using the docker-compose utils etc. but I am not sure how to best unit test this? Do you have any suggestions or pointers for me to look at? Thank you very much and best regards.
EDIT:
I've done a simple prototype with my hive-metastore running locally via docker-compose, which works just fine. So testing via integration tests seems to be no problem.
I've done a simple prototype with my hive-metastore running locally via docker-compose, which works just fine. So testing via integration tests seems to be no problem.
It's fine to have integration tests. It doesn't make sense to me to mock HMS.
@Xuanwo
Yes, I thought the same - mocking the HMS would not be beneficial.
I've setup the basic test-infra for the hms-catalog. In the next couple of days I will try to work on / finish the implementation of the catalog.
I 'finished' the work on all the namespace operations.
Since this would be my first contribution to this repo, I would appreciate it if someone could take a quick look at the current status.
sidenote:
For the hive-metastore docker-compose, I used a file I had from a previous project; however this needs some optimization since the connection to the mysql backend slows down the integration tests. My approach would be to use derby instead of mysql to speed things up - but I havent gotten around to take a look at it.
Anyway best regards and thanks in advance for the feedback.
@Xuanwo@liurenjie1024
I'm currently looking at the table operations in particular create_table and I'm having some trouble understanding the handling of the metadata. Looking at the REST-Catalog implementation, I don't see any metadata.json actually being written (physically)? Is this correct or am I missing something?
Hi, @marvinlanhenke I think currently we can leave create_table unimplemented since it has some dependencies, such as transaction api and table metadata builder, otherwise it's currently not practical.
[...] since it has some dependencies, such as transaction api and table metadata builder, otherwise it's currently not practical.
Makes sense to me.
So I'd leave create_table, load_table, update_table and drop_table as unimplemented, since they all depend on those dependencies you mentioned - or they need create_table; so those other methods can be tested.
@liurenjie1024
I think it'd be best to create another issue that sketches out the next steps (dependencies) for the upcomming week or two? (Andrew Lamb does this in Datafusion and it helps a lot coordinating the effort).
Hi, @marvinlanhenke Thanks for the suggestion, I think creating tracking issue and clarifying their dependency would be quite helpful, let me create one for 0.3 release. I'm not sure if an issue for upcoming week or two helps.
thank you so much for setting up the projects and preparing release 0.3.0 - I like the structure.
For this issue - I'll try to push part 2 this week where I setup as much as I can do without the TableMetadataBuilder - meaning all the table operations are implemented / including validations so the only parts left, will be the creation of the TableMetadata and the actual return of Result<Table>
@liurenjie1024
just a quick update: I've implemented most of the stuff I can do without the TableMetadataBuilder. Also you can assign this issue to me, if you'd like.
@liurenjie1024
I'm done with the implementation and ready to push the PR.
However, I think it would be great to review #272 first, since it blocked my implementation / serialization of metadata. Thus, I made the changes. Let me know what you think
Activity
marvinlanhenke commentedon Mar 4, 2024
@Xuanwo I've started looking into this (just started yesterday taking a look at the codebase in general) - how would you go about unit testing the catalog trait for hms? The integration test could probably be done using the docker-compose utils etc. but I am not sure how to best unit test this? Do you have any suggestions or pointers for me to look at? Thank you very much and best regards.
EDIT:
I've done a simple prototype with my hive-metastore running locally via docker-compose, which works just fine. So testing via integration tests seems to be no problem.
Still unsure about how to unit-test this.
Xuanwo commentedon Mar 5, 2024
It's fine to have integration tests. It doesn't make sense to me to mock HMS.
marvinlanhenke commentedon Mar 6, 2024
@Xuanwo
Yes, I thought the same - mocking the HMS would not be beneficial.
I've setup the basic test-infra for the hms-catalog. In the next couple of days I will try to work on / finish the implementation of the catalog.
Xuanwo commentedon Mar 6, 2024
That's great!
marvinlanhenke commentedon Mar 8, 2024
@Xuanwo @liurenjie1024
...just a quick update and a request for feedback.
I 'finished' the work on all the namespace operations.
Since this would be my first contribution to this repo, I would appreciate it if someone could take a quick look at the current status.
I just want to make sure it aligns with the rest of the codebase, before I put in the effort to implement the rest of the catalog.
https://github.com/marvinlanhenke/iceberg-rust/blob/hms/crates/catalog/hms/src/catalog.rs#L260-L428
sidenote:
For the hive-metastore docker-compose, I used a file I had from a previous project; however this needs some optimization since the connection to the mysql backend slows down the integration tests. My approach would be to use
derbyinstead of mysql to speed things up - but I havent gotten around to take a look at it.Anyway best regards and thanks in advance for the feedback.
Xuanwo commentedon Mar 8, 2024
Awesome!
Let's merge this PR first and then start another one. There's no need to combine them into a single large PR.
In short, submit a PR and then we can polish it together.
marvinlanhenke commentedon Mar 8, 2024
Sounds good to me - looking forward to it.
Best regards.
marvinlanhenke commentedon Mar 9, 2024
@Xuanwo @liurenjie1024
I'm currently looking at the table operations in particular
create_tableand I'm having some trouble understanding the handling of the metadata. Looking at theREST-Catalogimplementation, I don't see any metadata.json actually being written (physically)? Is this correct or am I missing something?Anyway, is it correct to assume to use
FileIO::from_path(metadata_location)and then create anew_output(...) -> Result<OutputFile>this would align with the python impl:https://github.com/apache/iceberg-python/blob/main/pyiceberg/catalog/hive.py#L309
liurenjie1024 commentedon Mar 10, 2024
Hi, @marvinlanhenke I think currently we can leave
create_tableunimplemented since it has some dependencies, such as transaction api and table metadata builder, otherwise it's currently not practical.marvinlanhenke commentedon Mar 10, 2024
So I'd leave
create_table,load_table,update_tableanddrop_tableas unimplemented, since they all depend on those dependencies you mentioned - or they need create_table; so those other methods can be tested.@liurenjie1024
I think it'd be best to create another issue that sketches out the next steps (dependencies) for the upcomming week or two? (Andrew Lamb does this in Datafusion and it helps a lot coordinating the effort).
liurenjie1024 commentedon Mar 10, 2024
Hi, @marvinlanhenke Thanks for the suggestion, I think creating tracking issue and clarifying their dependency would be quite helpful, let me create one for 0.3 release. I'm not sure if an issue for upcoming week or two helps.
liurenjie1024 commentedon Mar 11, 2024
The left parts are blocked by #250
marvinlanhenke commentedon Mar 11, 2024
thank you so much for setting up the projects and preparing release 0.3.0 - I like the structure.
For this issue - I'll try to push part 2 this week where I setup as much as I can do without the
TableMetadataBuilder- meaning all the table operations are implemented / including validations so the only parts left, will be the creation of theTableMetadataand the actual return ofResult<Table>liurenjie1024 commentedon Mar 12, 2024
@marvinlanhenke Thanks for the work. I'll also try to work on setting up
TableMetadataBuilderthis week.marvinlanhenke commentedon Mar 12, 2024
@liurenjie1024
just a quick update: I've implemented most of the stuff I can do without the
TableMetadataBuilder. Also you can assign this issue to me, if you'd like.liurenjie1024 commentedon Mar 13, 2024
@marvinlanhenke Sure, thanks!
marvinlanhenke commentedon Mar 17, 2024
@liurenjie1024
I'm done with the implementation and ready to push the PR.
However, I think it would be great to review #272 first, since it blocked my implementation / serialization of metadata. Thus, I made the changes. Let me know what you think
liurenjie1024 commentedon Mar 19, 2024
@marvinlanhenke The pr looks great, thanks!
feat(delete-vector): write/read V3 deletion-vector-v1 Puffin blobs
feat(delete-vector): write/read V3 deletion-vector-v1 Puffin blobs