-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonathan Vexler
committed
Nov 22, 2022
1 parent
afb5f8f
commit 79e84bb
Showing
5 changed files
with
83 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...k-client/src/test/java/org/apache/hudi/client/functional/WriteClientBrokenClustering.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.apache.hudi.client.functional; | ||
|
||
import org.apache.hudi.common.engine.HoodieEngineContext; | ||
import org.apache.hudi.common.model.HoodieRecordPayload; | ||
import org.apache.hudi.common.util.Option; | ||
import org.apache.hudi.config.HoodieWriteConfig; | ||
import org.apache.hudi.exception.HoodieException; | ||
|
||
import java.util.Map; | ||
|
||
public class WriteClientBrokenClustering<T extends HoodieRecordPayload> extends org.apache.hudi.client.SparkRDDWriteClient<T> { | ||
|
||
|
||
public WriteClientBrokenClustering(HoodieEngineContext context, HoodieWriteConfig clientConfig) { | ||
super(context, clientConfig); | ||
} | ||
|
||
@Override | ||
protected Option<String> inlineClustering(Option<Map<String, String>> extraMetadata) { | ||
throw new HoodieException("CLUSTERING IS BROKEN"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters