Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static List<GenericRecord> getRecordsUsingInputFormat(Configuration conf,
.collect(Collectors.toList()));

return inputPaths.stream().map(path -> {
setInputPath(jobConf, path);
FileInputFormat.setInputPaths(jobConf, path);
List<GenericRecord> records = new ArrayList<>();
try {
List<InputSplit> splits = Arrays.asList(inputFormat.getSplits(jobConf, 1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ public static Row getRandomValue(String partitionPath, boolean isError) {
public static List<InternalRow> toInternalRows(Dataset<Row> rows, ExpressionEncoder encoder) {
List<InternalRow> toReturn = new ArrayList<>();
List<Row> rowList = rows.collectAsList();
ExpressionEncoder.Serializer<Row> serializer = encoder.createSerializer();
for (Row row : rowList) {
toReturn.add(encoder.toRow(row).copy());
toReturn.add(serializer.apply(row).copy());
}
return toReturn;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private <T> T executeRequest(String requestPath, Map<String, String> queryParame
break;
}
String content = response.returnContent().asString();
return mapper.readValue(content, reference);
return (T) mapper.readValue(content, reference);
}

private Map<String, String> getParamsWithPartitionPath(String partitionPath) {
Expand Down
9 changes: 2 additions & 7 deletions hudi-integ-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>2.7.4</version>
<version>${fasterxml.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.6.7.3</version>
<version>${fasterxml.version}</version>
</dependency>

<!-- Fasterxml - Test-->
Expand All @@ -220,11 +220,6 @@
<artifactId>jackson-annotations</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-guava</artifactId>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading