1
0

[MINOR] Fix some code style issues based on check-style plugin (#4532)

Co-authored-by: yuezhang <yuezhang@freewheel.tv>
This commit is contained in:
YueZhang
2022-01-09 17:14:56 +08:00
committed by GitHub
parent 36790709f7
commit cf362fb2d5
11 changed files with 12 additions and 11 deletions

View File

@@ -31,13 +31,10 @@ import org.apache.spark.sql.SaveMode;
import org.apache.spark.sql.SparkSession;
import org.apache.spark.sql.Dataset;
public class HoodieSparkBootstrapExample {
private static String tableType = HoodieTableType.MERGE_ON_READ.name();
public static void main(String[] args) throws Exception {
if (args.length < 5) {
System.err.println("Usage: HoodieSparkBootstrapExample <recordKey> <tableName> <partitionPath> <preCombineField> <basePath>");
@@ -68,7 +65,7 @@ public class HoodieSparkBootstrapExample {
.option(HoodieTableConfig.BASE_FILE_FORMAT.key(), HoodieFileFormat.ORC.name())
.option(HoodieBootstrapConfig.BASE_PATH.key(), basePath)
.option(HoodieBootstrapConfig.KEYGEN_CLASS_NAME.key(), NonpartitionedKeyGenerator.class.getCanonicalName())
.mode(SaveMode.Overwrite).save("/hudi/"+tableName);
.mode(SaveMode.Overwrite).save("/hudi/" + tableName);
df.count();
}