[ML] Enable datafeed preview with future data (elastic/x-pack-elasticsearch#949)
Original commit: elastic/x-pack-elasticsearch@7f9e450edc
This commit is contained in:
parent
38706faec7
commit
4fdcedb9f9
|
@ -219,7 +219,7 @@ public class PreviewDatafeedAction extends Action<PreviewDatafeedAction.Request,
|
|||
// This is important because it means the datafeed search will fail if the user
|
||||
// requesting the preview doesn't have permission to search the relevant indices.
|
||||
DataExtractorFactory dataExtractorFactory = DataExtractorFactory.create(client, datafeedWithAutoChunking.build(), job);
|
||||
DataExtractor dataExtractor = dataExtractorFactory.newExtractor(0, System.currentTimeMillis());
|
||||
DataExtractor dataExtractor = dataExtractorFactory.newExtractor(0, Long.MAX_VALUE);
|
||||
threadPool.generic().execute(() -> previewDatafeed(dataExtractor, listener));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue