Skip to content

[SPARK-58618][BUILD] Fix duplicated path in lint-scala scalafmt failure message - #57821

Open
uros-b wants to merge 1 commit into
apache:masterfrom
uros-b:devexp-lint-scala-msg
Open

[SPARK-58618][BUILD] Fix duplicated path in lint-scala scalafmt failure message#57821
uros-b wants to merge 1 commit into
apache:masterfrom
uros-b:devexp-lint-scala-msg

Conversation

@uros-b

@uros-b uros-b commented Aug 6, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Fixes the scalafmt failure message in dev/lint-scala, which names the same path twice:

The scalafmt check failed on sql/connect or sql/connect at following occurrences:

The first path is corrected to sql/api, so the message reads sql/api or sql/connect.

Why are the changes needed?

The check runs over sql/api plus four modules under sql/connect (common, server, shims, client/jvm), so sql/connect or sql/connect is a tautology that tells the reader nothing about the first module. The corrected wording matches the -pl module list printed on the very next line of the same script.

The duplication is a leftover of the module rename in SPARK-49428: the message previously read sql/connect or connector/connect, and applying the connector/connect to sql/connect rename to the message text collapsed both halves to the same path. The sql/api module had been added to the check earlier, in SPARK-49511, without the message being updated.

Does this PR introduce any user-facing change?

No. Developer-facing message text in a lint script only.

How was this patch tested?

No functional change. The edited string is inside an existing echo -e and no test, CI workflow, or doc matches on this message text, so nothing consumes it programmatically.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8)

@uros-b uros-b left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Waiting for CI. @dongjoon-hyun Please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants