hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Vary (JIRA)" <>
Subject [jira] [Commented] (HIVE-17981) Create a set of builders for Thrift classes
Date Sat, 04 Nov 2017 13:59:01 GMT


Peter Vary commented on HIVE-17981:

[~alangates]: We were stared to draw some drafts for enhancing the IMetaStoreClient testing.
No jira yet - trying to decide the best course of action, and see if it is worth the effort.
Do you think it could be done during your work with the standalone metastore, or shall we
wait a little until you finish the separation?

> Create a set of builders for Thrift classes
> -------------------------------------------
>                 Key: HIVE-17981
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Standalone Metastore
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>            Priority: Major
> Instantiating some of the Thrift classes is painful.  Consider building a {{Table}} object,
which requires a {{StorageDescriptor}}, which requires a {{SerDeInfo}} and a list of {{FieldInfo}}.
 All that is really necessary for a Table in the most simple case is a name, a database, and
some columns.  But currently creating even a simple Table requires 20+ lines of code.  This
is particularly painful in tests.  
> I propose to add a set of builders.  These will come with reasonable defaults to minimize
the boilerplate code.  They will also include simple methods for common operations (like adding
columns, or a parameter) without requiring the user to create all the sub-objects (like {{StorageDescriptor}}).

This message was sent by Atlassian JIRA

View raw message