Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Hadoop Filesystem Path URI instead of java.net.URI #67

Merged
merged 1 commit into from
Feb 5, 2020

Commits on Feb 5, 2020

  1. Use Hadoop Filesystem Path URI instead of java.net.URI

    The `java.net.URI` cannot resolve the paths that contain regex patterns,
    for example, `'s3a://bucket/{year=2019/month=1,year=2019/month=2}/*'`.
    
    Instead we should use Hadoop Filesystem Path, and then convert the path
    to URI using `.toUri()` method.
    
    For example, to obtain the schema from a path:
    
    ```scala
    new Path(bucketPathString).toUri.getSchema
    ```
    morazow committed Feb 5, 2020
    Configuration menu
    Copy the full SHA
    c4c846d View commit details
    Browse the repository at this point in the history