@@ -28,7 +28,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.StringJoiner;
|
||||
|
||||
|
||||
/**
|
||||
* Represents the schema difference between the storage schema and hive table schema.
|
||||
*/
|
||||
|
||||
@@ -39,8 +39,9 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.apache.hudi.hive.util.HiveSchemaUtil.HIVE_ESCAPE_CHARACTER;
|
||||
/*
|
||||
This class adds functionality for all query based DDLExecutors. The classes extending it only have to provide runSQL(sql) functions.
|
||||
|
||||
/**
|
||||
* This class adds functionality for all query based DDLExecutors. The classes extending it only have to provide runSQL(sql) functions.
|
||||
*/
|
||||
public abstract class QueryBasedDDLExecutor implements DDLExecutor {
|
||||
private static final Logger LOG = LogManager.getLogger(QueryBasedDDLExecutor.class);
|
||||
|
||||
@@ -500,14 +500,14 @@ public class RequestHandler {
|
||||
|
||||
if (refreshCheck) {
|
||||
long beginFinalCheck = System.currentTimeMillis();
|
||||
String errMsg =
|
||||
"Last known instant from client was "
|
||||
+ context.queryParam(RemoteHoodieTableFileSystemView.LAST_INSTANT_TS,
|
||||
HoodieTimeline.INVALID_INSTANT_TS)
|
||||
+ " but server has the following timeline "
|
||||
+ viewManager.getFileSystemView(context.queryParam(RemoteHoodieTableFileSystemView.BASEPATH_PARAM))
|
||||
.getTimeline().getInstants().collect(Collectors.toList());
|
||||
if (isLocalViewBehind(context)) {
|
||||
String errMsg =
|
||||
"Last known instant from client was "
|
||||
+ context.queryParam(RemoteHoodieTableFileSystemView.LAST_INSTANT_TS,
|
||||
HoodieTimeline.INVALID_INSTANT_TS)
|
||||
+ " but server has the following timeline "
|
||||
+ viewManager.getFileSystemView(context.queryParam(RemoteHoodieTableFileSystemView.BASEPATH_PARAM))
|
||||
.getTimeline().getInstants().collect(Collectors.toList());
|
||||
throw new BadRequestResponse(errMsg);
|
||||
}
|
||||
long endFinalCheck = System.currentTimeMillis();
|
||||
|
||||
Reference in New Issue
Block a user