1
0
Commit Graph

1740 Commits

Author SHA1 Message Date
JunZhang
e0108e972e [MINOR] Add Baidu BOS storage support for hudi (#3061)
Co-authored-by: zhangjun30 <zhangjun30@baidu.com>
2021-06-10 15:51:36 +08:00
Wei
a8b10e9067 [MINOR] Remove boxing (#3062) 2021-06-10 13:03:32 +08:00
Danny Chan
afbafe7046 [HUDI-1992] Release the new records map for merge handle #close (#3056) 2021-06-09 21:12:56 +08:00
yuzhaojing
728089a888 delete duplicate bootstrap function (#3052)
Co-authored-by: 喻兆靖 <yuzhaojing@bilibili.com>
2021-06-09 19:29:57 +08:00
Danny Chan
e8fcf04b57 [HUDI-1987] Fix non partition table hive meta sync for flink writer (#3049) 2021-06-09 14:20:04 +08:00
Danny Chan
a6f5fc5967 [HUDI-1986] Skip creating marker files for flink merge handle (#3047) 2021-06-09 14:17:28 +08:00
Vinay Patil
11360f707e [HUDI-1892] Fix NPE when avro field value is null (#3051) 2021-06-08 18:12:18 -04:00
Wei
75d663f65d [HUDI-1980] Optimize the code to prevent other exceptions from causing resources not to be closed (#3038)
Co-authored-by: wei.zhang2 <wei.zhang2@dmall.com>
2021-06-08 21:58:34 +08:00
wangxianghu
7261f08507 [HUDI-1929] Support configure KeyGenerator by type (#2993) 2021-06-08 09:26:10 -04:00
pengzhiwei
f760ec543e [HUDI-1659] Basic Implement Of Spark Sql Support For Hoodie (#2645)
Main functions:
Support create table for hoodie.
Support CTAS.
Support Insert for hoodie. Including dynamic partition and static partition insert.
Support MergeInto for hoodie.
Support DELETE
Support UPDATE
Both support spark2 & spark3 based on DataSourceV1.

Main changes:
Add sql parser for spark2.
Add HoodieAnalysis for sql resolve and logical plan rewrite.
Add commands implementation for CREATE TABLE、INSERT、MERGE INTO & CTAS.
In order to push down the update&insert logical to the HoodieRecordPayload for MergeInto, I make same change to the
HoodieWriteHandler and other related classes.
1、Add the inputSchema for parser the incoming record. This is because the inputSchema for MergeInto is different from writeSchema as there are some transforms in the update& insert expression.
2、Add WRITE_SCHEMA to HoodieWriteConfig to pass the write schema for merge into.
3、Pass properties to HoodieRecordPayload#getInsertValue to pass the insert expression and table schema.


Verify this pull request
Add TestCreateTable for test create hoodie tables and CTAS.
Add TestInsertTable for test insert hoodie tables.
Add TestMergeIntoTable for test merge hoodie tables.
Add TestUpdateTable for test update hoodie tables.
Add TestDeleteTable for test delete hoodie tables.
Add TestSqlStatement for test supported ddl/dml currently.
2021-06-07 23:24:32 -07:00
yuzhaojing
cf83f10f5b add BootstrapFunction to support index bootstrap (#3024)
Co-authored-by: 喻兆靖 <yuzhaojing@bilibili.com>
2021-06-08 13:55:25 +08:00
Vinoth Govindarajan
57611d10b5 [HUDI-1743] Added support for SqlFileBasedTransformer (#2747) 2021-06-07 21:48:27 -04:00
Sivabalan Narayanan
919590988a [HUDI-1914] Add fetching latest schema to table command in hudi-cli (#2964) 2021-06-07 16:04:35 -07:00
Raymond Xu
441076b2cc [HUDI-1950] Move TestHiveMetastoreBasedLockProvider to functional (#3043)
HiveTestUtil static setup mini servers caused connection refused issue in Azure CI environment, as TestHiveSyncTool and TestHiveMetastoreBasedLockProvider share the same test facilities. Moving TestHiveMetastoreBasedLockProvider (the easier one) to functional test with a separate and improved mini server setup resolved the issue.

Also cleaned up dfs cluster from HiveTestUtil.

The next step is to move TestHiveSyncTool to functional as well.
2021-06-07 15:38:59 -07:00
Vinay Patil
f3d7b49bfe [HUDI-1148] Remove Hadoop Conf Logs (#3040) 2021-06-07 14:49:55 -07:00
Vinay Patil
0d0dc6fb07 [HUDI-1909] Skip Commits with empty files (#3045) 2021-06-07 21:58:19 +08:00
Danny Chan
08464a6a5b [HUDI-1931] BucketAssignFunction use ValueState instead of MapState (#3026)
Co-authored-by: 854194341@qq.com <loukey_7821>
2021-06-06 10:40:15 +08:00
Vinay Patil
2a7e1e091e [HUDI-1942] Add Default value for HIVE_AUTO_CREATE_DATABASE_OPT_KEY in HoodieSparkSqlWriter (#3036) 2021-06-05 18:02:26 -04:00
Wei
dab13f7473 [HUDI-1979] Optimize logic to improve code readability (#3037)
Co-authored-by: wei.zhang2 <wei.zhang2@dmall.com>
2021-06-05 19:40:45 +08:00
Danny Chan
c2383ee904 [HUDI-1967] Fix the NPE for MOR Hive rt table query (#3032)
The HoodieInputFormatUtils.getTableMetaClientByBasePath returns the map
with table base path as keys while the HoodieRealtimeInputFormatUtils
query it with the partition path.
2021-06-05 01:06:34 -07:00
Vinay Patil
cf90f17732 [HUDI-1281] Add deltacommit to ActionType (#3018)
Co-authored-by: veenaypatil <vinay18.patil@gmail.com>
2021-06-04 22:30:48 -07:00
yuzhaojing
c4a2ad2702 [HUDI-1954] only reset bucket when flush bucket success (#3029)
Co-authored-by: 喻兆靖 <yuzhaojing@bilibili.com>
2021-06-04 20:48:08 -07:00
vinoth chandar
d02c0e5387 [MINOR] Resolve build issue arising from inaccessible pentaho jar (#3034)
- Fixes #160 #2479
2021-06-04 15:28:44 -04:00
Danny Chan
a658328001 [HUDI-1961] Add a debezium json integration test case for flink (#3030) 2021-06-04 15:15:32 +08:00
wangxianghu
870e97b5f8 [MINOR] Remove unused method in DataSourceUtils (#3031) 2021-06-03 10:24:51 -07:00
Wei
f6eee77636 [MINOR] Remove the implementation of Serializable from HoodieException (#3020) 2021-06-03 19:46:33 +08:00
swuferhong
ad72691d24 [HUDI-1957] Fix flink timeline service lack jetty dependency (#3028) 2021-06-03 19:39:31 +08:00
taylorliao
86007e9a13 [HUDI-1953] Fix NPE due to not set the output type of the operator (#3023)
Co-authored-by: enter58xuan <enter58xuan@zto.com>
2021-06-03 14:20:57 +08:00
swuferhong
05a9830e86 [HUDI-1952] Fix hive3 meta sync for flink writer (#3021) 2021-06-02 14:12:03 +08:00
Danny Chan
7fa2f8ea82 [HUDI-1921] Add target io option for flink compaction (#2980) 2021-06-02 10:10:35 +08:00
Danny Chan
bf1cfb5635 [HUDI-1949] Refactor BucketAssigner to make it more efficient (#3017)
Add a process single class WriteProfile, the record and small files
profile re-construction can be more efficient if we reuse by same
checkpoint id.
2021-06-02 09:12:35 +08:00
taylorliao
83c31e356f [HUDI-1927] Improve HoodieFlinkStreamer (#3019)
Co-authored-by: enter58xuan <enter58xuan@zto.com>
2021-06-01 18:35:14 +08:00
hk__lrzy
83b0301c1a [HUDI-1943] Lose properties when hoodieWriteConfig initializtion (#3006)
* [hudi-flink]fix lose properties problem

Co-authored-by: haoke <haoke@bytedance.com>
2021-06-01 16:09:48 +08:00
Wei
e6a71ea544 [MINOR] Access the static member getLastHeartbeatTime via the class instead (#3015) 2021-05-31 18:54:05 +08:00
Wei
219b92c8ae [MINOR] The collection can use forEach() directly (#3016) 2021-05-31 18:52:30 +08:00
Danny Chan
34ab756a40 [HUDI-1948] Shade kryo-shaded jar for hudi flink bundle (#3014) 2021-05-31 17:39:19 +08:00
Yao WANG
7a63175a70 fix the grammer err of the comment (#3013)
Co-authored-by: ywang46 <ywang46@paypal.com>
2021-05-31 11:44:25 +08:00
Wei
d965b0550f [MINOR] 'return' is unnecessary as the last statement in a 'void' method (#3012) 2021-05-31 11:43:10 +08:00
pengzhiwei
dcd7c331dc [HUDI-1879] Support Partition Prune For MergeOnRead Snapshot Table (#2926) 2021-05-29 07:50:24 -07:00
rmpifer
0709c62a6b [HUDI-1800] Exclude file slices in pending compaction when performing small file sizing (#2902)
Co-authored-by: Ryan Pifer <ryanpife@amazon.com>
2021-05-29 08:06:01 -04:00
wangxianghu
974b476180 [HUDI-1940] Add SqlQueryBasedTransformer unit test (#3004) 2021-05-28 22:30:30 +08:00
yuzhaojing
bc18c39835 [FLINK-1923] Exactly-once write for flink writer (#3002)
Co-authored-by: 喻兆靖 <yuzhaojing@bilibili.com>
2021-05-28 14:58:21 +08:00
Danny Chan
7fed7352bd [HUDI-1865] Make embedded time line service singleton (#2899) 2021-05-27 13:38:33 +08:00
Vinay Patil
4eb6ef8144 [HUDI-1935] Updated Logger statement (#2996)
Co-authored-by: veenaypatil <vinay18.patil@gmail.com>
2021-05-26 15:04:58 +08:00
leesf
112732db81 [HUDI-1922] Bulk insert with row writer supports mor table (#2981) 2021-05-25 09:40:22 -07:00
Raymond Xu
afa6bc0b10 [HUDI-1723] Fix path selector listing files with the same mod date (#2845) 2021-05-25 10:19:10 -04:00
wangxianghu
e7020748b5 [HUDI-1920] Set archived as the default value of HOODIE_ARCHIVELOG_FOLDER_PROP_NAME (#2978) 2021-05-25 16:29:55 +08:00
Town
aba1eadbfc [HUDI-1919] Type mismatch when streaming read copy_on_write table using flink (#2986)
* [HUDI-1919] Type mismatch when streaming read copy_on_write table using flink #2976

* Update ParquetSplitReaderUtil.java
2021-05-25 11:36:43 +08:00
mpouttu
369a849337 [HUDI-1873] collect() call causing issues with very large upserts (#2907)
Co-authored-by: Sivabalan Narayanan <sivabala@uber.com>
2021-05-24 01:29:01 -04:00
wangxianghu
6539813733 [MINOR] Update the javadoc of EngineType (#2979) 2021-05-22 19:44:08 +08:00