Y Ethan Guo
9a05940a74
[HUDI-3366] Remove hardcoded logic of disabling metadata table in tests ( #4792 )
2022-02-15 16:41:47 -05:00
Yann Byron
fe02c64fea
fix build & ci ( #4822 )
2022-02-15 03:40:40 -08:00
Yann Byron
cb6ca7f0d1
[HUDI-3204] fix problem that spark on TimestampKeyGenerator has no re… ( #4714 )
2022-02-14 23:38:38 -05:00
Yann Byron
3b401d839c
[HUDI-3200] deprecate hoodie.file.index.enable and unify to use BaseFileOnlyViewRelation to handle ( #4798 )
2022-02-14 17:38:01 -08:00
YueZhang
0a97a9893a
[HUDI-3398] Fix TableSchemaResolver for all file formats and metadata table ( #4782 )
...
Co-authored-by: yuezhang <yuezhang@freewheel.tv >
2022-02-14 16:02:47 -08:00
leesf
0db1e978c6
[HUDI-3254] Introduce HoodieCatalog to manage tables for Spark Datasource V2 ( #4611 )
2022-02-14 06:26:58 -08:00
董可伦
94806d5cf7
[HUDI-3272] If mode==ignore && tableExists, do not execute write logic and sync hive ( #4632 )
2022-02-14 09:22:00 +05:30
YueZhang
76e2faa28d
[HUDI-3370] The files recorded in the commit may not match the actual ones for MOR Compaction ( #4753 )
...
* use HoodieCommitMetadata to replace writeStatuses computation
Co-authored-by: yuezhang <yuezhang@freewheel.tv >
2022-02-14 11:12:52 +08:00
Y Ethan Guo
6aba00e84f
[MINOR] Fix typos in Spark client related classes ( #4781 )
2022-02-13 06:41:58 -08:00
Yann Byron
b431246710
[HUDI-3338] Custom relation instead of HadoopFsRelation ( #4709 )
...
Currently, HadoopFsRelation will use the value of the real partition path as the value of the partition field. However, different from the normal table, Hudi will persist the partition value in the parquet file. And in some cases, it's different between the value of the real partition path and the value of the partition field.
So here we implement BaseFileOnlyViewRelation which lets Hudi manage its own relation.
2022-02-11 10:48:44 -08:00
Sivabalan Narayanan
ba4e732ba7
[HUDI-2987] Update all deprecated calls to new apis in HoodieRecordPayload ( #4681 )
2022-02-10 19:19:33 -05:00
Yann Byron
2fe7a3a41f
[HUDI-2610] pass the spark version when sync the table created by spark ( #4758 )
...
* [HUDI-2610] pass the spark version when sync the table created by spark
* [MINOR] sync spark version in DataSourceUtils#buildHiveSyncConfig
2022-02-10 21:05:28 +05:30
Alexey Kudinkin
464027ec37
[HUDI-3239] Convert BaseHoodieTableFileIndex to Java ( #4669 )
...
Converting BaseHoodieTableFileIndex to Java, removing Scala as a dependency from "hudi-common"
2022-02-09 18:42:08 -05:00
Sivabalan Narayanan
ab73047958
Adding support for custom scheduler configs with streaming sink ( #4762 )
2022-02-08 14:44:10 +05:30
Alexey Kudinkin
3f263b82ce
[HUDI-3206] Unify Hive's MOR implementations to avoid duplication ( #4559 )
...
Unify Hive's MOR implementations to avoid duplication to avoid duplication across implementations for different file-formats (Parquet, HFile, etc)
- Extracted HoodieRealtimeFileInputFormatBase (extending COW HoodieFileInputFormatBase base)
- Rebased Parquet, HFile implementations onto HoodieRealtimeFileInputFormatBase
- Tidying up
2022-02-07 14:06:28 -05:00
ForwardXu
773b317983
[HUDI-2941] Show _hoodie_operation in spark sql results ( #4649 )
2022-02-07 06:28:13 -08:00
ehui
538db185ca
[HUDI-2491] Expose HMS mode metastore uri config option for spark writer ( #3962 )
2022-02-07 18:13:51 +05:30
Y Ethan Guo
b8601a9f58
[HUDI-2656] Generalize HoodieIndex for flexible record data type ( #3893 )
...
Co-authored-by: Raymond Xu <2701446+xushiyan@users.noreply.github.com >
2022-02-03 20:24:04 -08:00
Alexey Kudinkin
d681824982
[HUDI-3337] Fixing Parquet Column Range metadata extraction ( #4705 )
...
- Parquet Column Range metadata extraction utility was simplistically assuming that Decimal types are only represented by INT32, while they representation varies depending on precision.
- More details could be found here:
https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#DECIMAL
2022-02-02 20:58:05 -05:00
jsbali
7ce0f4522b
[HUDI-2711] Fallback to fulltable scan for IncrementalRelation if underlying files have been cleared or moved by cleaner ( #3946 )
...
Co-authored-by: sivabalan <n.siva.b@gmail.com >
2022-01-31 23:03:18 -05:00
Yann Byron
ecbad9526a
[HUDI-3253] preferred to use the table's own location ( #4608 )
2022-01-29 00:39:42 -08:00
Raymond Xu
0bd38f26ca
[HUDI-2596] Make class names consistent in hudi-client ( #4680 )
2022-01-27 17:05:08 -08:00
Yann Byron
4a9f826382
[HUDI-3215] Solve UT for Spark 3.2 ( #4565 )
2022-01-26 14:48:26 -08:00
xuzifu666
bf409e8423
[MINOR] Standardize HoodieSqlCommon.g4 file ( #4582 )
2022-01-25 10:09:08 +08:00
Yann Byron
26c3f797b0
[HUDI-3237] gracefully fail to change column data type ( #4677 )
2022-01-24 16:33:36 -08:00
Alexey Kudinkin
bc7882cbe9
[HUDI-2872][HUDI-2646] Refactoring layout optimization (clustering) flow to support linear ordering ( #4606 )
...
Refactoring layout optimization (clustering) flow to
- Enable support for linear (lexicographic) ordering as one of the ordering strategies (along w/ Z-order, Hilbert)
- Reconcile Layout Optimization and Clustering configuration to be more congruent
2022-01-24 16:53:54 -05:00
董可伦
cfde45b548
[HUDI-3282] Fix delete exception for Spark SQL when sync Hive ( #4644 )
2022-01-23 11:32:57 -08:00
Sivabalan Narayanan
f7a77961e3
[HUDI-1850][HUDI-3234] Fixing read of a empty table but with failed write ( #2903 )
2022-01-23 14:23:21 -05:00
董可伦
56cd8ffae0
[HUDI-2837] Add support for using database name in incremental query ( #4083 )
2022-01-22 22:11:27 -08:00
Y Ethan Guo
4b9085057a
[HUDI-3268] Fix NPE while reading table with Spark datasource ( #4630 )
2022-01-21 08:46:07 -05:00
董可伦
8547f11752
[HUDI-3271] Code optimization and clean up unused code in HoodieSparkSqlWriter ( #4631 )
2022-01-20 18:49:04 -05:00
Yann Byron
31b57a256f
[HUDI-3236] use fields'comments persisted in catalog to fill in schema ( #4587 )
2022-01-19 21:44:35 -08:00
Alexey Kudinkin
4bea758738
[HUDI-3191] Rebasing Hive's FileInputFormat onto AbstractHoodieTableFileIndex ( #4531 )
2022-01-18 14:54:51 -08:00
Thinking Chen
caeea946fb
[HUDI-3245] Convert uppercase letters to lowercase in storage configs ( #4602 )
2022-01-18 14:51:09 -05:00
Yann Byron
a09c231911
[HUDI-2903] get table schema from the last commit with data written ( #4180 )
2022-01-18 10:50:30 -05:00
RexAn
f18447406d
[HUDI-1558] Struct Stream Source Support Spark3 ( #4586 )
...
Co-authored-by: Hui An <hui.an@shopee.com >
2022-01-18 11:08:33 +08:00
Alexey Kudinkin
75caa7d3d8
[HUDI-3179] Extracted common AbstractHoodieTableFileIndex to be shared across engines ( #4520 )
2022-01-16 22:46:20 -08:00
Yann Byron
d2dda55794
[HUDI-2968] add UT for update/delete on non-pk condition ( #4568 )
2022-01-16 12:02:12 -08:00
Yann Byron
5e0171a5ee
[HUDI-3198] Improve Spark SQL create table from existing hudi table ( #4584 )
...
To modify SQL statement for creating hudi table based on an existing hudi path.
From:
```sql
create table hudi_tbl using hudi tblproperties (primaryKey='id', preCombineField='ts', type='cow') partitioned by (pt) location '/path/to/hudi'
```
To:
```sql
create table hudi_tbl using hudi location '/path/to/hudi'
```
2022-01-14 10:15:29 -08:00
leesf
5ce45c440b
[HUDI-3172] Refactor hudi existing modules to make more code reuse in V2 Implementation ( #4514 )
...
* Introduce hudi-spark3-common and hudi-spark2-common modules to place classes that would be reused in different spark versions, also introduce hudi-spark3.1.x to support spark 3.1.x.
* Introduce hudi format under hudi-spark2, hudi-spark3, hudi-spark3.1.x modules and change the hudi format in original hudi-spark module to hudi_v1 format.
* Manually tested on Spark 3.1.2 and Spark 3.2.0 SQL.
* Added a README.md file under hudi-spark-datasource module.
2022-01-14 13:42:35 +08:00
董可伦
017ddbbfac
[MINOR] Fix typos ( #4567 )
2022-01-11 23:17:10 -08:00
Yann Byron
36790709f7
[HUDI-3125] spark-sql write timestamp directly ( #4471 )
2022-01-08 23:43:25 -08:00
Sagar Sumit
827549949c
[HUDI-2909] Handle logical type in TimestampBasedKeyGenerator ( #4203 )
...
* [HUDI-2909] Handle logical type in TimestampBasedKeyGenerator
Timestampbased key generator was returning diff values for row writer and non row writer path. this patch fixes it and is guarded by a config flag (`hoodie.datasource.write.keygenerator.consistent.logical.timestamp.enabled`)
2022-01-08 10:22:44 -05:00
Raymond Xu
2467c137e4
[HUDI-3100] Add config for hive conditional sync ( #4440 )
2022-01-06 23:26:35 -08:00
Vinish Reddy
eee715b3ff
[HUDI-3168] Fixing null schema with empty commit in incremental relation ( #4513 )
2022-01-05 11:43:10 -05:00
Sivabalan Narayanan
7329d229d5
Adding tests to validate different key generators ( #4473 )
2022-01-04 10:48:04 +05:30
leesf
29ab6fb9ad
[HUDI-3140] Fix bulk_insert failure on Spark 3.2.0 ( #4498 )
2022-01-04 09:59:59 +08:00
harshal
2b2ae34cb9
[HUDI-2558] Fixing Clustering w/ sort columns with null values fails ( #4404 )
2022-01-03 12:19:43 +05:30
Yann Byron
fe9406dd33
[HUDI-3131] fix ctas error in spark3.1.1 ( #4476 )
2022-01-02 03:06:55 -08:00
Yann Byron
1622b52c9c
[HUDI-3136] Fix merge/insert/show partitions error on Spark3.2 ( #4490 )
2022-01-02 02:42:10 -08:00