Skip to content

[SPARK-49183][SQL][FOLLOWUP][3.5] Fix compilation#47722

Closed
cloud-fan wants to merge 2 commits intoapache:branch-3.5from
cloud-fan:fix
Closed

[SPARK-49183][SQL][FOLLOWUP][3.5] Fix compilation#47722
cloud-fan wants to merge 2 commits intoapache:branch-3.5from
cloud-fan:fix

Conversation

@cloud-fan
Copy link
Contributor

@cloud-fan cloud-fan commented Aug 12, 2024

What changes were proposed in this pull request?

fix compilation error caused by #47684 . Seems scala 2.12 has some subtle differences in the import priority.

Why are the changes needed?

N/A

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

pass compilation

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

no

@dongjoon-hyun dongjoon-hyun changed the title [3.5] fix compilation [SPARK-49183][SQL][FOLLOWUP][3.5] Fix compilation Aug 12, 2024
import java.sql.Timestamp
import java.time.{Duration, LocalDate, Period}
import java.util
import java.{util => jutil}
Copy link
Member

Choose a reason for hiding this comment

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

Could you fix the import order, @cloud-fan ?

[error] /home/runner/work/spark/spark/sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala:22:0: java. is in wrong order relative to java.time..

Copy link
Member

Choose a reason for hiding this comment

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

Nvm. I. updated the order.

$ dev/scalastyle
Using SPARK_LOCAL_IP=localhost
Scalastyle checks passed.

@dongjoon-hyun
Copy link
Member

Merged to branch-3.5 to recover CIs and unblock other PRs.

dongjoon-hyun added a commit that referenced this pull request Aug 12, 2024
### What changes were proposed in this pull request?

fix compilation error caused by #47684 . Seems scala 2.12 has some subtle differences in the import priority.

### Why are the changes needed?

N/A

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

pass compilation

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

no

Closes #47722 from cloud-fan/fix.

Lead-authored-by: Wenchen Fan <wenchen@databricks.com>
Co-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants