Skip to content

only consider main part of the url when deciding is_collection in listing table#10419

Merged
alamb merged 3 commits intoapache:mainfrom
y-f-u:main
May 8, 2024
Merged

only consider main part of the url when deciding is_collection in listing table#10419
alamb merged 3 commits intoapache:mainfrom
y-f-u:main

Conversation

@y-f-u
Copy link
Copy Markdown
Contributor

@y-f-u y-f-u commented May 8, 2024

Which issue does this PR close?

Query string and fragment should not be considered when deciding if the path is a collection
Will open one if needed, but the PR itself is descriptive enough.

Rationale for this change

See tests in the PR. It can be common if a remote object store takes query string or fragment for other perspective, e.g. tracking.

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added the core Core DataFusion crate label May 8, 2024
Comment thread datafusion/core/src/datasource/listing/url.rs Outdated
Copy link
Copy Markdown
Contributor

@phillipleblanc phillipleblanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @y-f-u!

Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution @y-f-u and @phillipleblanc

I have kicked off the CI and assuming it passes I think this PR will be good to merge

@alamb
Copy link
Copy Markdown
Contributor

alamb commented May 8, 2024

I took the liberty of running cargo fmt and pushing that commit to this branch to get CI passing

@alamb alamb merged commit e024529 into apache:main May 8, 2024
@alamb
Copy link
Copy Markdown
Contributor

alamb commented May 8, 2024

Thanks again @y-f-u and @phillipleblanc

findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
…ting table (apache#10419)

* only consider main part of the url when deciding is_collection in listing table

* use url path

* run `cargo fmt`

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants