-
Notifications
You must be signed in to change notification settings - Fork 15
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
add connector.version as build property #121
base: main
Are you sure you want to change the base?
Conversation
/gcbrun |
spark-3.1-spanner-lib/src/main/java/com/google/cloud/spark/spanner/SpannerUtils.java
Outdated
Show resolved
Hide resolved
spark-3.1-spanner-lib/src/main/java/com/google/cloud/spark/spanner/SpannerUtils.java
Outdated
Show resolved
Hide resolved
/gcbrun |
/gcbrun |
Properties buildProperties = new Properties(); | ||
buildProperties.load( | ||
SpannerUtils.class.getResourceAsStream("/spark-spanner-connector.properties")); | ||
System.out.println(buildProperties.getProperty("connector.version")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use System.out.println()
, replace it with logger
System.out.println(buildProperties.getProperty("connector.version")); | ||
return buildProperties; | ||
} finally { | ||
System.out.println("FAILED"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use System.out.println(), replace it with logger
@@ -0,0 +1,2 @@ | |||
#connector.version=${project.version} | |||
connector.version=3.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for that? the idea is to track the connector's version for the user agent
SpannerUtils.class.getResourceAsStream("/spark-spanner-connector.properties")); | ||
return buildProperties; | ||
} finally { | ||
return new Properties(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail line 74
Let's revert the pr. Since it's out of date. |
No description provided.