fix: keep URL credentials out of Parquet scan errors and S3 setup logs #7719
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 280 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.337
Real PR Conversation Timeline
1 comments
"Review active on #7719"
general
weight: 0.35
andygrove
Which issue does this PR close?
Part of #7128. This covers two additional diagnostics alongside #7556, #7561, #7562 and #7565.
Rationale for this change
The native Parquet planner saves the original Spark file URL alongside the object key so a timestamp overflow can identify the failing file in a multi-file task. The reader copies that URL into the structured error sent back to Spark. If the URL carries credentials, they reach the task failure. Spark file listings usually supply credential-free paths, so this is defense in depth. File attribution in #5891
S3 store creation also logs the resolved configuration at debug level. Even a scan of a plain
s3://bucket/file.parquetcan print a credential from a customfs.s3a.endpointor its per-bucket override. The endpoint comes from Hadoop configuration independently of the file URL handled in #7556.What changes are included in this PR?
s3a:///bucket/key, the reader uses the first path segment after resolving..as the bucket. The diagnostic keeps the original segments, so it strips userinfo from each segment that could serve as the bucket, even if a later..discards it. Literal@characters in the object key are preserved.How are these changes tested?
A native scan test writes a synthetic Parquet file with a millisecond timestamp that overflows on conversion to microseconds. It plans and executes a scan with a synthetic query and fragment on the file URL, then checks the exact percent-encoded path in
ParquetTimestampOverflow. A table test checks userinfo in a promoted S3A authority, a Unicode HDFS filename, an ABFS container, encoded dot segments, and literal and escaped delimiters in filenames.Checked
rustfmt --checkandgit diff --checklocally. Test execution is delegated to hosted CI. The S3 log change was checked by inspecting the arguments todebug!.