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

scala version upgrade: 2.12 -> 2.13 #51

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ShreeshaS01
Copy link

@ShreeshaS01 ShreeshaS01 commented Dec 17, 2024

  • Scala upgrade: 2.12 to 2.13
  • Third party dependency: Upgrade affected classes are separated
  • Change in root pom.xml to provide support for multiple scala and spark version build

Copy link

google-cla bot commented Dec 17, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ShreeshaS01 ShreeshaS01 reopened this Dec 17, 2024
@ShreeshaS01 ShreeshaS01 changed the title Local build scala 2.13 spark 3.3 copy scala version upgrade: 2.12 -> 2.13 Dec 17, 2024

Choose a reason for hiding this comment

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

Why do we have a README-template and a README?

@@ -13,11 +13,11 @@ You can access the connector in two different ways:
1. From
our [Maven Central repository](https://repo1.maven.org/maven2/com/google/cloud/spark/bigtable).
2. Through a public GCS bucket, located
at `gs://spark-lib/bigtable/spark-bigtable_2.12-<version>.jar`.
at `gs://spark-lib/bigtable/spark-bigtable_2.13-<version>.jar`.

Choose a reason for hiding this comment

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

Instead of replacing let's add both links and mention that one is for Scala 2.12 and the other 2.13

Choose a reason for hiding this comment

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

Same comment for other changes in this file

<groupId>com.google.cloud.spark.bigtable</groupId>
<artifactId>spark-bigtable-common</artifactId>
<version>0.2.1</version>
<relativePath>../../spark-bigtable-common/pom.xml</relativePath>

Choose a reason for hiding this comment

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

I don't think ../../spark-bigtable-common exists. Also spark-bigtable-core is probably a better name for the core functionality, and then maintain the naming pattern for the child packages (spark-bigtable-scala2.12 and spark-bigtable-scala2.13). This will make it more explicit 1) what 2.12/2.13 refers to and 2) spark-bigtable refers to the packages here in general

Choose a reason for hiding this comment

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

In the same spirit, can we remove the intermediate folder ./bigtable-support and just have folders ./spark-bigtable-core, ./spark-bigtable-scala2.12 and ./spark-bigtable-scala2.13

Choose a reason for hiding this comment

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

I think the license for this source code requires us to have a notice for all modifications. See https://github.com/GoogleCloudDataproc/spark-bigtable-connector/blob/main/third_party/hbase-spark-connector/LICENSE

(b) You must cause any modified files to carry prominent notices stating that You changed the files;

I'll double check with someone and comment here again

<groupId>com.google.cloud.spark.bigtable</groupId>
<artifactId>spark-bigtable-connector</artifactId>
<version>0.2.1</version>
<relativePath>../../pom.xml</relativePath>

Choose a reason for hiding this comment

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

This package's parent should likely be -common (or -core as suggested on the other pom file)

Choose a reason for hiding this comment

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

I think this was not intentional?

Choose a reason for hiding this comment

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

Did we removed the renaming of these packages intentionally?

@@ -220,6 +236,8 @@
</transformers>
<artifactSet>
<excludes>
<exclude>com.google.cloud:google-cloud-bigtable</exclude>

Choose a reason for hiding this comment

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

Why the exclusions and relocations?

Choose a reason for hiding this comment

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

I think the license for this source code requires us to have a notice for all modifications. See https://github.com/GoogleCloudDataproc/spark-bigtable-connector/blob/main/third_party/hbase-spark-connector/LICENSE

(b) You must cause any modified files to carry prominent notices stating that You changed the files;

I'll double check with someone and comment here again

Choose a reason for hiding this comment

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

Also, don't we need to have a version for 2.12 of this class as well?

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