Skip to content
Open
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 @@ -223,7 +223,7 @@ private void setCurrentReader(int index) {
try {
reader = source.createReader(readerContext);
} catch (Exception e) {
throw new RuntimeException("Failed tp create reader", e);
throw new RuntimeException("Failed to create reader", e);
}
// currentReader must be switched before `addSplits` is called.
currentSourceIndex = index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static void validateTypeMatch(Descriptors.Descriptor descriptor, RowType
throw new ValidationException(
"Column "
+ rowField.getName()
+ " does not exists in definition of proto class.");
+ " does not exist in definition of proto class.");
}
});
}
Expand Down Expand Up @@ -160,7 +160,7 @@ private static void validateSimpleType(FieldDescriptor fd, LogicalTypeRoot logic
throw new ValidationException(
"Protobuf field type does not match column type, "
+ fd.getJavaType()
+ "(protobuf) is not compatible of "
+ "(protobuf) is not compatible with "
+ logicalTypeRoot);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void putApplication(ApplicationStoreEntry application) throws Exception {
success = true;
} catch (StateHandleStore.NotExistException ignored) {
LOG.warn(
"{} does not exists in {}.",
"{} does not exist in {}.",
application,
applicationStateHandleStore);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public void putExecutionPlan(ExecutionPlan executionPlan) throws Exception {
success = true;
} catch (StateHandleStore.NotExistException ignored) {
LOG.warn(
"{} does not exists in {}.",
"{} does not exist in {}.",
executionPlan,
executionPlanStateHandleStore);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private static RelNode convertUpdate(
&& updateInfo.getRowLevelUpdateMode()
!= SupportsRowLevelUpdate.RowLevelUpdateMode.ALL_ROWS) {
throw new IllegalArgumentException(
"Unknown update mode:" + updateInfo.getRowLevelUpdateMode());
"Unknown update mode: " + updateInfo.getRowLevelUpdateMode());
}
Tuple2<RelNode, int[]> updateRelNodeAndRequireIndices =
convertToRowLevelUpdate(
Expand Down Expand Up @@ -647,7 +647,7 @@ private static void convertPredicateToNegative(LogicalTableModify tableModify) {
if (!(dynamicTableSource instanceof SupportsReadingMetadata)) {
throw new UnsupportedOperationException(
String.format(
"The table source don't support reading metadata, but the require columns contains the meta columns: %s.",
"The table source does not support reading metadata, but the required columns contain metadata columns: %s.",
column));
}
// list what metas the source supports to read
Expand All @@ -661,7 +661,7 @@ private static void convertPredicateToNegative(LogicalTableModify tableModify) {
if (!readableMetadata.containsKey(metaCol)) {
throw new IllegalArgumentException(
String.format(
"Expect to read the meta column %s, but the table source for table %s doesn't support read the metadata column."
"Expected to read metadata column %s, but the table source for table %s does not support it. "
+ "Please make sure the readable metadata for the source contains %s.",
column,
UnresolvedIdentifier.of(
Expand All @@ -674,7 +674,7 @@ private static void convertPredicateToNegative(LogicalTableModify tableModify) {
if (!dataType.equals(column.getDataType())) {
throw new IllegalArgumentException(
String.format(
"Un-matched data type: the required column %s has datatype %s, but the data type in readable metadata for the table %s has data type %s. ",
"Mismatched data type: the required column %s has data type %s, but readable metadata for table %s has data type %s.",
column,
column.getDataType(),
UnresolvedIdentifier.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
/**
* IntervalJoinSpec describes how two tables will be joined in interval join.
*
* <p>This class corresponds to {@link org.apache.calcite.rel.core.Join} rel node. the join
* condition is splitted into two part: WindowBounds and JoinSpec: 1. WindowBounds contains the time
* range condition. 2. JoinSpec contains rest of the join condition except windowBounds.
* <p>This class corresponds to {@link org.apache.calcite.rel.core.Join} rel node. The join
* condition is splitted into two parts: WindowBounds and JoinSpec: 1. WindowBounds contains the
* time range condition. 2. JoinSpec contains rest of the join condition except windowBounds.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class IntervalJoinSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void testExceptionThrowingAggregateFunction() throws Exception {
/**
* Source Function that uses updateGlobalAggregate() functionality exposed via
* StreamingRuntimeContext to validate communication with JobMaster and test both failure and
* sucess scenarios.
* success scenarios.
*/
private static class TestSourceFunction extends RichSourceFunction<Integer> {

Expand Down