You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Raymond Xu (Jira)" <ji...@apache.org> on 2022/10/13 13:23:00 UTC

[jira] [Updated] (HUDI-5002) Remove deprecated API usage in SparkHoodieHBaseIndex#generateStatement

     [ https://issues.apache.org/jira/browse/HUDI-5002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Xu updated HUDI-5002:
-----------------------------
    Component/s: index
                     (was: cli)

> Remove deprecated API usage in SparkHoodieHBaseIndex#generateStatement 
> -----------------------------------------------------------------------
>
>                 Key: HUDI-5002
>                 URL: https://issues.apache.org/jira/browse/HUDI-5002
>             Project: Apache Hudi
>          Issue Type: Improvement
>          Components: index
>            Reporter: fanshilun
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.12.2
>
>         Attachments: image-2022-10-10-21-31-59-535.png
>
>
> When I read the code, I found that SparkHoodieHBaseIndex#generateStatement uses Hbase's deprecated method(setMaxVersion), I replaced it with new method.
>  
> {code:java}
> private Get generateStatement(String key) throws IOException {
>   return new Get(Bytes.toBytes(getHBaseKey(key))).setMaxVersions(1).addColumn(SYSTEM_COLUMN_FAMILY, COMMIT_TS_COLUMN)
>       .addColumn(SYSTEM_COLUMN_FAMILY, FILE_NAME_COLUMN).addColumn(SYSTEM_COLUMN_FAMILY, PARTITION_PATH_COLUMN);
> } {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)