[
https://issues.apache.org/jira/browse/BEAM-2283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luke Cwik resolved BEAM-2283.
-----------------------------
Fix Version/s: Not applicable
Resolution: Won't Do
This would too much of a backwards incompatible change at this time.
> Consider using actual URIs instead of Strings/ResourceIds in relation to
> FileSystems
> ------------------------------------------------------------------------------------
>
> Key: BEAM-2283
> URL: https://issues.apache.org/jira/browse/BEAM-2283
> Project: Beam
> Issue Type: Improvement
> Components: io-ideas, io-java-gcp, sdk-java-core, sdk-py-core
> Reporter: Luke Cwik
> Priority: P2
> Labels: stale-P2
> Fix For: Not applicable
>
>
> We treat things like URIs because we expect them to have a scheme component
> and to be able to resolve a parent/child but fail to treat them as URIs in
> the internal implementation since our string versions don't go through URI
> normalization. This brings up a few issues:
> * The cost of implementing and maintaining ResourceIds instead of having
> users use a standard URI implementation. This would just require FileSystems
> to be able to take a string and give back a URI (to enable them to have
> custom implementations in case they extend the concept of URIs with scheme
> specific extensions).
> * The myriad of bugs that will come up because of improper usage of URI like
> strings and the assumptions associated with them (like
> https://issues.apache.org/jira/browse/BEAM-2277)
> Note that swapping to URIs adds complexity because:
> * Resolving URIs with glob expressions needs to be handled carefully
> * FileSystems may need to implement a complicated type instead of ResourceId.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)