You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "vinoyang (Jira)" <ji...@apache.org> on 2019/09/20 07:29:00 UTC

[jira] [Commented] (HUDI-267) Refactor bad method name HoodieTestUtils#initTableType

    [ https://issues.apache.org/jira/browse/HUDI-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16934162#comment-16934162 ] 

vinoyang commented on HUDI-267:
-------------------------------

[~vinoth] What do you think?

> Refactor bad method name HoodieTestUtils#initTableType
> ------------------------------------------------------
>
>                 Key: HUDI-267
>                 URL: https://issues.apache.org/jira/browse/HUDI-267
>             Project: Apache Hudi (incubating)
>          Issue Type: Sub-task
>          Components: Testing
>            Reporter: vinoyang
>            Assignee: vinoyang
>            Priority: Major
>
> There are some bad method name about {{HoodieTableMetaClient}}, e.g. 
> (1) {{HoodieTestUtils#initTableType}}: it returns an instance of {{HoodieTableMetaClient}}, not about initializing table type, while it has a side effort: it initializes the path as hoodie dataset.
> (2){{HoodieTableMetaClient.initializePathAsHoodieDataset}} it also returns an instance of {{HoodieTableMetaClient}}, however, from its name, it seems we want to initialize path?
> I would like to suggest rename:
> (1) {{HoodieTestUtils#initTableType}} to {{HoodieTestUtils#init}} as a override method like others;
> (2) {{HoodieTableMetaClient.initializePathAsHoodieDataset}} to {{HoodieTableMetaClient.initializeMetaClientWithPathAsHoodieDataset}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)