You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/06/15 23:28:04 UTC
[GitHub] [druid] didip opened a new pull request, #12659: Able to filter Cloud objects with glob notation.
didip opened a new pull request, #12659:
URL: https://github.com/apache/druid/pull/12659
<!-- Thanks for trying to help us make Apache Druid be the best it can be! Please fill out as much of the following information as is possible (where relevant, and remove it when irrelevant) to help make the intention and scope of this PR clear in order to ease review. -->
<!-- Please read the doc for contribution (https://github.com/apache/druid/blob/master/CONTRIBUTING.md) before making this PR. Also, once you open a PR, please _avoid using force pushes and rebasing_ since these make it difficult for reviewers to see what you've changed in response to their reviews. See [the 'If your pull request shows conflicts with master' section](https://github.com/apache/druid/blob/master/CONTRIBUTING.md#if-your-pull-request-shows-conflicts-with-master) for more details. -->
Fixes #5772.
<!-- Replace XXXX with the id of the issue fixed in this PR. Remove this section if there is no corresponding issue. Don't reference the issue in the title of this pull-request. -->
<!-- If you are a committer, follow the PR action item checklist for committers:
https://github.com/apache/druid/blob/master/dev/committer-instructions.md#pr-and-issue-action-item-checklist-for-committers. -->
### Description
<!-- Describe the goal of this PR, what problem are you fixing. If there is a corresponding issue (referenced above), it's not necessary to repeat the description here, however, you may choose to keep one summary sentence. -->
In a heterogeneous environment, sometimes you don't have control over the input folder. Upstream can put any folder they want. In this situation the `S3InputSource.java` is unusable.
Most people like me solved it by using Airflow to fetch the full list of parquet files and pass it over to Druid. But doing this explodes the JSON spec. We had a situation where 1 of the JSON spec is 16MB and that's simply too much for Overlord.
<!-- Describe your patch: what did you change in code? How did you fix the problem? -->
This patch allows users to pass `{"filter": "*.parquet"}` and let Druid performs the filtering of the input files.
I am using the `glob` notation to be consistent with the [LocalFirehose syntax].(https://druid.apache.org/docs/latest/ingestion/native-batch.html#localfirehose)
<!-- If there are several relatively logically separate changes in this PR, create a mini-section for each of them. For example: -->
<!--
In each section, please describe design decisions made, including:
- Choice of algorithms
- Behavioral aspects. What configuration values are acceptable? How are corner cases and error conditions handled, such as when there are insufficient resources?
- Class organization and design (how the logic is split between classes, inheritance, composition, design patterns)
- Method organization and design (how the logic is split between methods, parameters and return types)
- Naming (class, method, API, configuration, HTTP endpoint, names of emitted metrics)
-->
<!-- It's good to describe an alternative design (or mention an alternative name) for every design (or naming) decision point and compare the alternatives with the designs that you've implemented (or the names you've chosen) to highlight the advantages of the chosen designs and names. -->
<!-- If there was a discussion of the design of the feature implemented in this PR elsewhere (e. g. a "Proposal" issue, any other issue, or a thread in the development mailing list), link to that discussion from this PR description and explain what have changed in your final design compared to your original proposal or the consensus version in the end of the discussion. If something hasn't changed since the original discussion, you can omit a detailed discussion of those aspects of the design here, perhaps apart from brief mentioning for the sake of readability of this PR description. -->
<!-- Some of the aspects mentioned above may be omitted for simple and small changes. -->
<hr>
##### Key changed/added classes in this PR
* `S3InputSource`
* `CloudObjectInputSource`
* `OssInputSource`
* `AzureInputSource`
* `GoogleCloudStorageInputSource`
<hr>
<!-- Check the items by putting "x" in the brackets for the done things. Not all of these items apply to every PR. Remove the items which are not done or not relevant to the PR. None of the items from the checklist below are strictly necessary, but it would be very helpful if you at least self-review the PR. -->
This PR has:
- [x] been self-reviewed.
- [ ] added documentation for new or modified features or behaviors.
- [ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
- [ ] added or updated version, license, or notice information in [licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
- [x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
- [ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met.
- [ ] added integration tests.
- [x] been tested in a test Druid cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r901329684
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -308,6 +321,7 @@ Sample specs:
|uris|JSON array of URIs where the Azure objects to be ingested are located, in the form "azure://\<container>/\<path-to-file\>"|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of Azure objects to ingest, in the form "azure://\<container>/\<prefix\>". Empty objects starting with one of the given prefixes are skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of Azure objects to ingest.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files.|None|no|
Review Comment:
```suggestion
|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information.|None|no|
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158507909
@abhishekagarwal87 the checks passed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158511895
@abhishekagarwal87 sorry for this dumb question, but where is the checkstyle-result file? I ran this: `${MVN} checkstyle:checkstyle --fail-at-end` locally, got two errors but I cannot find where is the actual report.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158510659
@didip - travis check didn't run at all for your PR. I am going to close and reopen your PR to get that check running.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158076218
@abhishekagarwal87 tests are added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r905742884
##########
extensions-core/s3-extensions/src/main/java/org/apache/druid/data/input/s3/S3InputSource.java:
##########
@@ -211,10 +215,31 @@ protected InputEntity createEntity(CloudObjectLocation location)
@Override
protected Stream<InputSplit<List<CloudObjectLocation>>> getPrefixesSplitStream(@Nonnull SplitHintSpec splitHintSpec)
{
- final Iterator<List<S3ObjectSummary>> splitIterator = splitHintSpec.split(
- getIterableObjectsFromPrefixes().iterator(),
- object -> new InputFileAttribute(object.getSize())
- );
+ final Iterator<List<S3ObjectSummary>> splitIterator;
+
+ // Skip files that didn't match filter from splitHintSpec.
+ if (org.apache.commons.lang.StringUtils.isNotBlank(getFilter())) {
Review Comment:
Good catch @cryptoe
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r904090670
##########
extensions-core/s3-extensions/src/main/java/org/apache/druid/data/input/s3/S3InputSource.java:
##########
@@ -211,10 +215,31 @@ protected InputEntity createEntity(CloudObjectLocation location)
@Override
protected Stream<InputSplit<List<CloudObjectLocation>>> getPrefixesSplitStream(@Nonnull SplitHintSpec splitHintSpec)
{
- final Iterator<List<S3ObjectSummary>> splitIterator = splitHintSpec.split(
- getIterableObjectsFromPrefixes().iterator(),
- object -> new InputFileAttribute(object.getSize())
- );
+ final Iterator<List<S3ObjectSummary>> splitIterator;
+
+ // Skip files that didn't match filter from splitHintSpec.
+ if (org.apache.commons.lang.StringUtils.isNotBlank(getFilter())) {
Review Comment:
Thank you for your feedback, I will take a look and think about this further.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r898730947
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -44,17 +46,20 @@ public abstract class CloudObjectInputSource extends AbstractInputSource
private final List<URI> uris;
private final List<URI> prefixes;
private final List<CloudObjectLocation> objects;
+ private final String filter;
public CloudObjectInputSource(
Review Comment:
since many extensions extend this class, can you leave the old constructor too?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r901326681
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -164,15 +199,31 @@ public boolean equals(Object o)
return false;
}
CloudObjectInputSource that = (CloudObjectInputSource) o;
- return Objects.equals(uris, that.uris) &&
+ return Objects.equals(scheme, that.scheme) &&
+ Objects.equals(uris, that.uris) &&
Objects.equals(prefixes, that.prefixes) &&
- Objects.equals(objects, that.objects);
+ Objects.equals(objects, that.objects) &&
+ Objects.equals(filter, that.filter);
}
@Override
public int hashCode()
{
- return Objects.hash(uris, prefixes, objects);
+ return Objects.hash(scheme, uris, prefixes, objects, filter);
+ }
+
+ private void illegalArgsChecker() throws IllegalArgumentException
+ {
Review Comment:
what sort of validation do you expect @cryptoe? `filter` is nullable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158474464
@abhishekagarwal87 Specifically, which checks that you want me to take a look? The maven tasks don't show the actual reports. I don't know how to set these up yet.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158697035
cool. I am waiting for travis woes to be fixed and will merge your PR after that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159830761
@abhishekagarwal87 This test: https://app.travis-ci.com/github/apache/druid/jobs/574017537 have nothing to do with the files I touched.
```bash
at org.apache.druid.testing.utils.ITRetryUtil.retryUntil(ITRetryUtil.java:94) ~[druid-integration-tests-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.tests.indexer.AbstractStreamIndexingTest.doTestIndexDataWithAutoscaler(AbstractStreamIndexingTest.java:360) ~[test-classes/:?]
at org.apache.druid.tests.parallelized.ITKafkaIndexingServiceNonTransactionalParallelizedTest.testKafkaIndexDataWithWithAutoscaler(ITKafkaIndexingServiceNonTransactionalParallelizedTest.java:62) ~[test-classes/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_292]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_292]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132) ~[testng-7.3.0.jar:?]
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599) [testng-7.3.0.jar:?]
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174) [testng-7.3.0.jar:?]
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) [testng-7.3.0.jar:?]
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822) [testng-7.3.0.jar:?]
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147) [testng-7.3.0.jar:?]
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) [testng-7.3.0.jar:?]
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) [testng-7.3.0.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_292]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_292]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
```
As for the second problem: https://app.travis-ci.com/github/apache/druid/jobs/574017552, that test got this error when Peon tried to boot up:
```bash
2022-06-19T21:53:38,414 ERROR [main] org.apache.druid.cli.CliPeon - Error when starting up. Failing.
java.lang.reflect.InvocationTargetException: null
# due to
Caused by: java.nio.file.NoSuchFileException: /tmp/intermediary-segments/index_parallel_wikipedia_index_test_308123e8-c237-41eb-891f-0b6db6276c67 %Россия 한국 中国!?_omikabmi_2022-06-19T21:46:06.483Z
```
Full stacktrace:
```bash
2022-06-19T21:53:38,414 ERROR [main] org.apache.druid.cli.CliPeon - Error when starting up. Failing.
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_332]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_332]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_332]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_332]
at org.apache.druid.java.util.common.lifecycle.Lifecycle$AnnotationBasedHandler.start(Lifecycle.java:446) ~[druid-core-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.java.util.common.lifecycle.Lifecycle.start(Lifecycle.java:341) ~[druid-core-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.guice.LifecycleModule$2.start(LifecycleModule.java:152) ~[druid-core-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.cli.GuiceRunnable.initLifecycle(GuiceRunnable.java:165) [druid-services-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.cli.CliPeon.run(CliPeon.java:306) [druid-services-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.cli.Main.main(Main.java:114) [druid-services-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
Caused by: java.io.UncheckedIOException: /tmp/intermediary-segments/index_parallel_wikipedia_index_test_308123e8-c237-41eb-891f-0b6db6276c67 %Россия 한국 中国!?_omikabmi_2022-06-19T21:46:06.483Z
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:2153) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager.lambda$discoverSupervisorTaskPartitions$3(LocalIntermediaryDataManager.java:200) ~[druid-indexing-service-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[?:1.8.0_332]
at org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager.discoverSupervisorTaskPartitions(LocalIntermediaryDataManager.java:197) ~[druid-indexing-service-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager.start(LocalIntermediaryDataManager.java:134) ~[druid-indexing-service-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
... 10 more
Caused by: java.nio.file.NoSuchFileException: /tmp/intermediary-segments/index_parallel_wikipedia_index_test_308123e8-c237-41eb-891f-0b6db6276c67 %Россия 한국 中国!?_omikabmi_2022-06-19T21:46:06.483Z
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_332]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_332]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_332]
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) ~[?:1.8.0_332]
at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) ~[?:1.8.0_332]
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) ~[?:1.8.0_332]
at java.nio.file.Files.readAttributes(Files.java:1737) ~[?:1.8.0_332]
at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225) ~[?:1.8.0_332]
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276) ~[?:1.8.0_332]
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322) ~[?:1.8.0_332]
at java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:72) ~[?:1.8.0_332]
at java.nio.file.Files.walk(Files.java:3574) ~[?:1.8.0_332]
at org.apache.commons.io.file.PathUtils.walk(PathUtils.java:1044) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.commons.io.FileUtils.streamFiles(FileUtils.java:2971) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:2151) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager.lambda$discoverSupervisorTaskPartitions$3(LocalIntermediaryDataManager.java:200) ~[druid-indexing-service-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[?:1.8.0_332]
at org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager.discoverSupervisorTaskPartitions(LocalIntermediaryDataManager.java:197) ~[druid-indexing-service-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
at org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager.start(LocalIntermediaryDataManager.java:134) ~[druid-indexing-service-0.24.0-SNAPSHOT.jar:0.24.0-SNAPSHOT]
... 10 more
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159511319
@didip - please check if travis failures are genuine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1163863663
@abhishekagarwal87 is travis stuck? I see that build is created but nothing is happening.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r904359421
##########
extensions-core/s3-extensions/src/main/java/org/apache/druid/data/input/s3/S3InputSource.java:
##########
@@ -211,10 +215,31 @@ protected InputEntity createEntity(CloudObjectLocation location)
@Override
protected Stream<InputSplit<List<CloudObjectLocation>>> getPrefixesSplitStream(@Nonnull SplitHintSpec splitHintSpec)
{
- final Iterator<List<S3ObjectSummary>> splitIterator = splitHintSpec.split(
- getIterableObjectsFromPrefixes().iterator(),
- object -> new InputFileAttribute(object.getSize())
- );
+ final Iterator<List<S3ObjectSummary>> splitIterator;
+
+ // Skip files that didn't match filter from splitHintSpec.
+ if (org.apache.commons.lang.StringUtils.isNotBlank(getFilter())) {
Review Comment:
@cryptoe ok, I believe I have addressed your concern. In the latest codebase I moved the filtering logic into the respective `getIterableObjectsFromPrefixes()`.
This cleaned up the code a lot, which I think address the readability problem that @kfaraz raised.
All of my new test cases still passed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158497403
LGTM passed locally for me.
```
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:51 min
[INFO] Finished at: 2022-06-16T22:11:30-07:00
[INFO] ------------------------------------------------------------------------
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 closed pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 closed pull request #12659: Able to filter Cloud objects with glob notation.
URL: https://github.com/apache/druid/pull/12659
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] cryptoe commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
cryptoe commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r901409160
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -164,15 +199,31 @@ public boolean equals(Object o)
return false;
}
CloudObjectInputSource that = (CloudObjectInputSource) o;
- return Objects.equals(uris, that.uris) &&
+ return Objects.equals(scheme, that.scheme) &&
+ Objects.equals(uris, that.uris) &&
Objects.equals(prefixes, that.prefixes) &&
- Objects.equals(objects, that.objects);
+ Objects.equals(objects, that.objects) &&
+ Objects.equals(filter, that.filter);
}
@Override
public int hashCode()
{
- return Objects.hash(uris, prefixes, objects);
+ return Objects.hash(scheme, uris, prefixes, objects, filter);
+ }
+
+ private void illegalArgsChecker() throws IllegalArgumentException
+ {
Review Comment:
I was thinking of a valid filter check like a valid regex, but seems like we do not have that helper method here:
http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] cryptoe commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
cryptoe commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r901244851
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -164,15 +199,31 @@ public boolean equals(Object o)
return false;
}
CloudObjectInputSource that = (CloudObjectInputSource) o;
- return Objects.equals(uris, that.uris) &&
+ return Objects.equals(scheme, that.scheme) &&
+ Objects.equals(uris, that.uris) &&
Objects.equals(prefixes, that.prefixes) &&
- Objects.equals(objects, that.objects);
+ Objects.equals(objects, that.objects) &&
+ Objects.equals(filter, that.filter);
}
@Override
public int hashCode()
{
- return Objects.hash(uris, prefixes, objects);
+ return Objects.hash(scheme, uris, prefixes, objects, filter);
+ }
+
+ private void illegalArgsChecker() throws IllegalArgumentException
+ {
Review Comment:
Please add some validation to filter as its user input.
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -308,6 +321,7 @@ Sample specs:
|uris|JSON array of URIs where the Azure objects to be ingested are located, in the form "azure://\<container>/\<path-to-file\>"|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of Azure objects to ingest, in the form "azure://\<container>/\<prefix\>". Empty objects starting with one of the given prefixes are skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of Azure objects to ingest.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files.|None|no|
Review Comment:
IMHO this documentation can be improved. Do we have support for regex filtering? Wildcard seems just too limiting
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -108,12 +129,26 @@ public Stream<InputSplit<List<CloudObjectLocation>>> createSplits(
)
{
if (!CollectionUtils.isNullOrEmpty(objects)) {
- return objects.stream().map(object -> new InputSplit<>(Collections.singletonList(object)));
+ if (StringUtils.isNotBlank(filter)) {
+ return objects.stream()
Review Comment:
Can you please shed some light into why do we require this change for **objects** and **uris**?
These inputs are controlled by the user. Shouldn't the user not provide the files if they do not need to ingested.
The filtering makes sense if we provide a **prefix** as then we do not know what can be present in the folder.
For that, I think we should explore: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html#API_ListObjectsV2_ResponseSyntax and similar for other connectors.
We can read up on prefix-based s3 lists for some part of the filtering at least.
LMK if I am missing a use case that I do not understand.
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -108,12 +129,26 @@ public Stream<InputSplit<List<CloudObjectLocation>>> createSplits(
)
{
if (!CollectionUtils.isNullOrEmpty(objects)) {
- return objects.stream().map(object -> new InputSplit<>(Collections.singletonList(object)));
+ if (StringUtils.isNotBlank(filter)) {
Review Comment:
Please update the Javadoc for this method
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r904514292
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -231,6 +240,7 @@ Sample specs:
|uris|JSON array of URIs where Google Cloud Storage objects to be ingested are located.|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of Google Cloud Storage objects to be ingested. Empty objects starting with one of the given prefixes will be skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of Google Cloud Storage objects to be ingested.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information.|None|no|
Review Comment:
addressed
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -308,6 +321,7 @@ Sample specs:
|uris|JSON array of URIs where the Azure objects to be ingested are located, in the form "azure://\<container>/\<path-to-file\>"|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of Azure objects to ingest, in the form "azure://\<container>/\<prefix\>". Empty objects starting with one of the given prefixes are skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of Azure objects to ingest.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information.|None|no|
Review Comment:
addressed
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -139,6 +144,7 @@ Sample specs:
|uris|JSON array of URIs where S3 objects to be ingested are located.|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of S3 objects to be ingested. Empty objects starting with one of the given prefixes will be skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of S3 Objects to be ingested.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information.|None|no|
Review Comment:
addressed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 closed pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 closed pull request #12659: Able to filter Cloud objects with glob notation.
URL: https://github.com/apache/druid/pull/12659
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159352833
@abhishekagarwal87 is everything good now?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158512755
`${MVN} spotbugs:check --fail-at-end -pl '!benchmarks'` failed due to unrelated `druid-sql` error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] kfaraz commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
kfaraz commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r903249235
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -52,20 +56,30 @@ public CloudObjectInputSource(
@Nullable List<CloudObjectLocation> objects
)
{
+ this.scheme = scheme;
Review Comment:
Sure, @didip , sounds good.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1165234177
Thank you @didip for your contribution.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r903139329
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -52,20 +56,30 @@ public CloudObjectInputSource(
@Nullable List<CloudObjectLocation> objects
)
{
+ this.scheme = scheme;
Review Comment:
@kfaraz I think that's too big of a change especially considering that `FilenameUtils.wildcardMatch` does not document the `null` behavior.
Also, I don't see why `FilenameUtils` cannot be used directly since other `commons` library are already used directly. Creating a method inside `FileUtils` would just add an unnecessary indirection.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] cryptoe commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
cryptoe commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1161238267
> To your question @cryptoe about supporting regex filtering, this PR only adds support for wildcard filtering. the most common use case is to ignore meta files such as `_SUCCESS` / `.SUCCESS` that wild card filters can do.
According to the druid docs,
<span>
property | description | default | required?
-- | -- | -- | --
type | This should be s3. | None | yes
uris | JSON array of URIs where S3 objects to be ingested are located. | None | uris or prefixes or objects must be set
prefixes | JSON array of URI prefixes for the locations of S3 objects to be ingested. Empty objects starting with one of the given prefixes will be skipped. | None | uris or prefixes or objects must be set
objects | JSON array of S3 Objects to be ingested. | None | uris or prefixes or objects must be set
properties | Properties Object for overriding the default S3 configuration. See below for more information. | None | No (defaults will be used if not given)
</span>
So we should only apply wildcard filtering when we specify **prefixes**. No ?
In the PR it seems like we are filtering for **uris** and **objects**. Hence the confusion.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] kfaraz commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
kfaraz commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r901426997
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -52,20 +56,30 @@ public CloudObjectInputSource(
@Nullable List<CloudObjectLocation> objects
)
{
+ this.scheme = scheme;
Review Comment:
Nit: it maybe simpler to just call the other constructor from here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] cryptoe commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
cryptoe commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r904495567
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -231,6 +240,7 @@ Sample specs:
|uris|JSON array of URIs where Google Cloud Storage objects to be ingested are located.|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of Google Cloud Storage objects to be ingested. Empty objects starting with one of the given prefixes will be skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of Google Cloud Storage objects to be ingested.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information.|None|no|
Review Comment:
```suggestion
|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information. Files matching the filter criteria are considered for ingestion. Files not matching the filter criteria are ignored.|None|no|
```
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -139,6 +144,7 @@ Sample specs:
|uris|JSON array of URIs where S3 objects to be ingested are located.|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of S3 objects to be ingested. Empty objects starting with one of the given prefixes will be skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of S3 Objects to be ingested.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information.|None|no|
Review Comment:
```suggestion
|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information. Files matching the filter criteria are considered for ingestion. Files not matching the filter criteria are ignored.|None|no|
```
##########
docs/ingestion/native-batch-input-source.md:
##########
@@ -308,6 +321,7 @@ Sample specs:
|uris|JSON array of URIs where the Azure objects to be ingested are located, in the form "azure://\<container>/\<path-to-file\>"|None|`uris` or `prefixes` or `objects` must be set|
|prefixes|JSON array of URI prefixes for the locations of Azure objects to ingest, in the form "azure://\<container>/\<prefix\>". Empty objects starting with one of the given prefixes are skipped.|None|`uris` or `prefixes` or `objects` must be set|
|objects|JSON array of Azure objects to ingest.|None|`uris` or `prefixes` or `objects` must be set|
+|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information.|None|no|
Review Comment:
```suggestion
|filter|A wildcard filter for files. See [here](http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/filefilter/WildcardFileFilter) for more information. Files matching the filter criteria are considered for ingestion. Files not matching the filter criteria are ignored.|None|no|
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r899430720
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -44,17 +46,20 @@ public abstract class CloudObjectInputSource extends AbstractInputSource
private final List<URI> uris;
private final List<URI> prefixes;
private final List<CloudObjectLocation> objects;
+ private final String filter;
public CloudObjectInputSource(
Review Comment:
@abhishekagarwal87 old constructor added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158078646
@abhishekagarwal87 I believe I covered all of your concerns? Feel free to review again when you get the chance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r899736595
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -55,6 +58,32 @@ public CloudObjectInputSource(
this.uris = uris;
this.prefixes = prefixes;
this.objects = objects;
+ this.filter = null;
+
+ if (!CollectionUtils.isNullOrEmpty(objects)) {
+ throwIfIllegalArgs(!CollectionUtils.isNullOrEmpty(uris) || !CollectionUtils.isNullOrEmpty(prefixes));
+ } else if (!CollectionUtils.isNullOrEmpty(uris)) {
+ throwIfIllegalArgs(!CollectionUtils.isNullOrEmpty(prefixes));
+ uris.forEach(uri -> CloudObjectLocation.validateUriScheme(scheme, uri));
+ } else if (!CollectionUtils.isNullOrEmpty(prefixes)) {
+ prefixes.forEach(uri -> CloudObjectLocation.validateUriScheme(scheme, uri));
+ } else {
+ throwIfIllegalArgs(true);
+ }
Review Comment:
can this moved to a common private method method?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r899747083
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -55,6 +58,32 @@ public CloudObjectInputSource(
this.uris = uris;
this.prefixes = prefixes;
this.objects = objects;
+ this.filter = null;
+
+ if (!CollectionUtils.isNullOrEmpty(objects)) {
+ throwIfIllegalArgs(!CollectionUtils.isNullOrEmpty(uris) || !CollectionUtils.isNullOrEmpty(prefixes));
+ } else if (!CollectionUtils.isNullOrEmpty(uris)) {
+ throwIfIllegalArgs(!CollectionUtils.isNullOrEmpty(prefixes));
+ uris.forEach(uri -> CloudObjectLocation.validateUriScheme(scheme, uri));
+ } else if (!CollectionUtils.isNullOrEmpty(prefixes)) {
+ prefixes.forEach(uri -> CloudObjectLocation.validateUriScheme(scheme, uri));
+ } else {
+ throwIfIllegalArgs(true);
+ }
Review Comment:
@abhishekagarwal87 done. I will check the CI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159544347
@abhishekagarwal87 how can I get the actual report of `MAVEN_OPTS='-Xmx3000m' ${MVN} ${MAVEN_SKIP} dependency:analyze -DoutputXML=true -DignoreNonCompile=true -DfailOnWarning=true`?
I get a bunch of debug messages but nothing tells me on which file the dependency error happened.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1164468631
@abhishekagarwal87 @cryptoe @kfaraz The TravisCI still failed on two of the unrelated issues I mentioned above. Can this PR be merged?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1162032308
@cryptoe It is true that the filter is applied to all three. So this is my reasoning:
The `objects` is not just used by end users. It is also used after createSplit happened. So to ensure consistency, I applied the filtering on the objects as well.
From that perspective, I came to a conclusion that maybe it will be nice for the end-users if the behavior is consistent on all three. Imagine if all they are reading is just the docs page (and not the source code). The end-user would totally expect that `filter` will be applied on all `objects`, `prefixes`, and `uris`. This is a win in terms of UX.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] cryptoe commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
cryptoe commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r903333146
##########
extensions-core/s3-extensions/src/main/java/org/apache/druid/data/input/s3/S3InputSource.java:
##########
@@ -211,10 +215,31 @@ protected InputEntity createEntity(CloudObjectLocation location)
@Override
protected Stream<InputSplit<List<CloudObjectLocation>>> getPrefixesSplitStream(@Nonnull SplitHintSpec splitHintSpec)
{
- final Iterator<List<S3ObjectSummary>> splitIterator = splitHintSpec.split(
- getIterableObjectsFromPrefixes().iterator(),
- object -> new InputFileAttribute(object.getSize())
- );
+ final Iterator<List<S3ObjectSummary>> splitIterator;
+
+ // Skip files that didn't match filter from splitHintSpec.
+ if (org.apache.commons.lang.StringUtils.isNotBlank(getFilter())) {
Review Comment:
Sorry to play spoilsport but I see one potential issue with this PR. :(
IMHO we should push the filtering to getIterableObjectsFromPrefixes(). This way the filtered path will not be used in splitHintSpecCalculations.
This logic may not work with people who have customer splitSpecs which do not take size into account.
Also, I think we add the filtering to `getIterableObjectsFromPrefixes` in other input sources also like
1. AzureInputSource
2. OSSInputSource
3. GCSInputSource
we will not have the subtle bug where the path is used for calculating splits but is ultimately filtered out when returning to the user.
@didip Appreciate your patience in answering the questions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1163751718
OK, I believe the code is now ready for the final review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1162641733
@didip - I think that makes sense. In fact, I was thinking along the very same lines even before you posted your comment :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158518619
@didip - I usually see the error on the terminal itself. maybe try removing `fail-at-end` parameter and you can look at the tail output.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158030399
@abhishekagarwal87 documentation is updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159568674
When I ran `MAVEN_OPTS='-Xmx3000m' ${MVN} ${MAVEN_SKIP} dependency:analyze`, it is completed.
```
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:11 min
[INFO] Finished at: 2022-06-18T14:29:00-07:00
[INFO] ------------------------------------------------------------------------
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1160325600
FWIW, I think the docs don't need many changes. Pointing to the wildcard syntax is good enough. To your question @cryptoe about supporting regex filtering, this PR only adds support for wildcard filtering. the most common use case is to ignore meta files such as `_SUCCESS` / `.SUCCESS` that wild card filters can do.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1162449738
@abhishekagarwal87 I updated docs and javadoc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1158524495
@abhishekagarwal87 ah, I finally found it with `-X` and grep for `[ERROR]`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159539518
checking...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159726995
@abhishekagarwal87 the code coverage is not detecting my tests on `illegalArgsChecker`. Not sure what to do next from here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159794995

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1159794950
@abhishekagarwal87 I have all green code coverage, but why Travis still broken?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] cryptoe commented on a diff in pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
cryptoe commented on code in PR #12659:
URL: https://github.com/apache/druid/pull/12659#discussion_r901249587
##########
core/src/main/java/org/apache/druid/data/input/impl/CloudObjectInputSource.java:
##########
@@ -108,12 +129,26 @@ public Stream<InputSplit<List<CloudObjectLocation>>> createSplits(
)
{
if (!CollectionUtils.isNullOrEmpty(objects)) {
- return objects.stream().map(object -> new InputSplit<>(Collections.singletonList(object)));
+ if (StringUtils.isNotBlank(filter)) {
+ return objects.stream()
Review Comment:
Can you please shed some light into why do we require this change for **objects** and **uris**?
These inputs are controlled by the user. Shouldn't the user not provide the files if they do not need to ingested.
The filtering makes sense if we provide a **prefix** as then we do not know what can be present in the folder.
For that, I think we should explore: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html#API_ListObjectsV2_ResponseSyntax and similar for other connectors.
We can rely on prefix-based s3 lists for some part of the filtering at least. This can be a follow up PR too.
LMK if I am missing a use case that I do not understand.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] didip commented on pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
didip commented on PR #12659:
URL: https://github.com/apache/druid/pull/12659#issuecomment-1157658807
@abhishekagarwal87 Thank you for the review, I will work on those.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 merged pull request #12659: Able to filter Cloud objects with glob notation.
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 merged PR #12659:
URL: https://github.com/apache/druid/pull/12659
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org