-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DF-292] Add builders: TableBuilder, ColumnBuilder, SerDeInfoBuilder and StorageDescriptorBuilder #15
Conversation
9faed60
to
cd117fa
Compare
:param description: (no information in thrift mapping) | ||
:param serializer_class: (no information in thrift mapping) | ||
:param deserializer_class: (no information in thrift mapping) | ||
:param serde_type: (no information in thrift mapping) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to keep it like that: (no information in thrift mapping)
?
I guess some of them are pretty obvious ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partition doesn't have the parameters documented in thrift, however I added a brief description as I understood the param are
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I let the docstrings to be reviewed later (because there were many here) and I forgot. Thanks for noticing.
I update the ones I knew. For these in serde_info_builder I don't know what to describe. Could you guys please help me? (And review this commit)
examples/create_table.py
Outdated
HIVE_PORT = 9083 | ||
|
||
hive_metastore_client = HiveMetastoreClient(HIVE_HOST, HIVE_PORT) | ||
with hive_metastore_client as conn: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we talked, we could also only wrap with with
in the final commands, right? These instantiations do not need to be inside the with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, good catch. This way the connection will only be oppened when it is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just minor comments :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a small comment
Co-authored-by: Juliana Freire <[email protected]>
Why? 📖
We are adding builders to isolate the thrift files logic from lib's clients.
What? 🔧
Type of change 🗄️
How everything was tested? 📏
Unit tests + test builders with API
Checklist 📝