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

[SPARK-50155][INFRA] Move scala and java files to their default folders #48691

Closed
wants to merge 1 commit into from

Conversation

panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Oct 29, 2024

What changes were proposed in this pull request?

The pr aims to move scala and java files to their default folders (src/main/scala and src/main/java), includes:

  • ByteArrayUtils.java
    from: common/utils/src/main/scala/org/apache/spark/unsafe/array/ByteArrayUtils.java
    to: common/utils/src/main/java/org/apache/spark/unsafe/array/ByteArrayUtils.java
  • CustomDecimal.scala
    from: connector/avro/src/main/java/org/apache/spark/sql/avro/CustomDecimal.scala
    to: connector/avro/src/main/scala/org/apache/spark/sql/avro/CustomDecimal.scala
  • OrcCompressionCodec.java
    from: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcCompressionCodec.java
    to: sql/core/src/main/java/org/apache/spark/sql/execution/datasources/orc/OrcCompressionCodec.java

Why are the changes needed?

Move scala and java files to the default folder of the project to avoid misunderstandings for spark developers.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass GA.

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

No.

@panbingkun panbingkun changed the title [SPARK-50155][INFRA] Move Scala and Java files to their default folders [SPARK-50155][INFRA] Move scala and java files to their default folders Oct 29, 2024
@panbingkun panbingkun marked this pull request as ready for review October 29, 2024 11:46
@MaxGekk
Copy link
Member

MaxGekk commented Oct 29, 2024

+1, LGTM. Merging to master.
Thank you, @panbingkun.

@MaxGekk MaxGekk closed this in 4d30048 Oct 29, 2024
@dongjoon-hyun
Copy link
Member

Thank you, @panbingkun and @MaxGekk .

Can we have this fix in branch-3.5, too?

BTW, to @panbingkun , this seems not [INFRA] category.

@panbingkun
Copy link
Contributor Author

Can we have this fix in branch-3.5, too?

Okay, allow me to do it.

BTW, to @panbingkun , this seems not [INFRA] category.

Haha, this is my first time doing something like this, and I'm not sure what category to use or should it be set nothing?

@panbingkun
Copy link
Contributor Author

Thank you, @panbingkun and @MaxGekk .

Can we have this fix in branch-3.5, too?

BTW, to @panbingkun , this seems not [INFRA] category.

Branch-3.5: #48700

MaxGekk pushed a commit that referenced this pull request Oct 30, 2024
### What changes were proposed in this pull request?
The pr aims to move `scala` and `java` files to their default folders (`src/main/scala` and `src/main/java`), includes:
- `ByteArrayUtils.java`
  from: `common/utils/src/main/scala/org/apache/spark/unsafe/array/ByteArrayUtils.java`
  to: `common/utils/src/main/java/org/apache/spark/unsafe/array/ByteArrayUtils.java`
- `CustomDecimal.scala`
  from: `connector/avro/src/main/java/org/apache/spark/sql/avro/CustomDecimal.scala`
  to: `connector/avro/src/main/scala/org/apache/spark/sql/avro/CustomDecimal.scala`

PS: The pr is backport branch-3.5, master pr is: #48691
Note: In branch-3.5, the `OrcCompressionCodec.java` file does not exist, so there is no need to move it.

### Why are the changes needed?
Move `scala` and `java` files to the default folder of the project to avoid `misunderstandings` for spark developers.

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

### How was this patch tested?
Pass GA.

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

Closes #48700 from panbingkun/SPARK-50155_branch3.5.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants