[MINOR] Tweak change log more as FULL for flink streaming source (#3466)
This commit is contained in:
@@ -198,7 +198,6 @@ public class HoodieTableSource implements
|
|||||||
@Override
|
@Override
|
||||||
public ChangelogMode getChangelogMode() {
|
public ChangelogMode getChangelogMode() {
|
||||||
return conf.getBoolean(FlinkOptions.READ_AS_STREAMING)
|
return conf.getBoolean(FlinkOptions.READ_AS_STREAMING)
|
||||||
&& !conf.getBoolean(FlinkOptions.CHANGELOG_ENABLED)
|
|
||||||
? ChangelogModes.FULL
|
? ChangelogModes.FULL
|
||||||
// when all the changes are persisted or read as batch,
|
// when all the changes are persisted or read as batch,
|
||||||
// use INSERT mode.
|
// use INSERT mode.
|
||||||
|
|||||||
@@ -25,10 +25,14 @@ import org.apache.flink.table.data.RowData;
|
|||||||
import org.apache.flink.table.types.logical.LogicalType;
|
import org.apache.flink.table.types.logical.LogicalType;
|
||||||
import org.apache.flink.table.types.logical.RowType;
|
import org.apache.flink.table.types.logical.RowType;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utilities to project the row data with given positions.
|
* Utilities to project the row data with given positions.
|
||||||
*/
|
*/
|
||||||
public class RowDataProjection {
|
public class RowDataProjection implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final RowData.FieldGetter[] fieldGetters;
|
private final RowData.FieldGetter[] fieldGetters;
|
||||||
|
|
||||||
private RowDataProjection(LogicalType[] types, int[] positions) {
|
private RowDataProjection(LogicalType[] types, int[] positions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user