dwsmith1983 opened a new pull request, #7743: URL: https://github.com/apache/datafusion-comet/pull/7743
## Which issue does this PR close? Closes #7734. This builds on `NativeConfig.displayPath` from #7565, so it merges after #7565. Its own change is the last commit on the branch. ## Rationale for this change The Iceberg write and scan plan strings printed the table's data and metadata locations as given, and so did several Iceberg fallback reasons. A location with a password in its userinfo or a signed query string then showed up in `explain()`, the SQL UI node description, the event log and the fallback report. A location that `java.net.URI` rejects was worse: the `URISyntaxException` message, which quotes the whole input, became the fallback reason. ## What changes are included in this PR? - `NativeConfig.displayLocation(String)` shows a location string through `displayPath`. A location `URI` cannot parse shows only its scheme, or `<unparseable>`. - The `CometIcebergWrite` and `CometIcebergNativeScan` plan strings use it for the data and metadata locations. - Write fallback reasons use it: no bucket in the authority, and the two `gs://` FileIO reasons. - A data location `URI` cannot parse now falls back with `<scheme> data location is not a valid URI` for every write scheme. It already fell back before, through an exception that quoted the location. - Scan fallback reasons use it too: an Iceberg metadata location `URI` cannot parse, and a file location without a URL host. - `iceberg.md` lists the new write fallback, and `iceberg-writes.md` says the plan string hides the location's password, query and fragment. No query changes between native and Spark execution, only the text that names the location. Logs and exceptions that still print a location are tracked in #7737. ## How are these changes tested? `NativeConfigSuite` covers `displayLocation` for userinfo, queries and fragments, an ABFS container, passwords that end the authority early, strings `URI` rejects, and locations shown as given. `CometIcebergWriteDetectionSuite` checks both plan strings and the write fallback reasons on real and hand-built plans, including `s3`, `gs`, `file` and plain locations that `URI` rejects. `CometIcebergNativeSuite` checks the two scan fallback reasons on real tables. Each test fails on the base branch, and reverting any one changed site fails a named test. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
