-
Notifications
You must be signed in to change notification settings - Fork 166
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
build: Support built with java 1.8 #45
Conversation
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.
@@ -76,7 +76,7 @@ object GenTPCHData { | |||
// Generate data | |||
// Since dbgen may uses stdout to output the data, tables.genData needs to run table by table | |||
val tableNames = | |||
if (config.tableFilter.isBlank) tables.tables.map(_.name) else Seq(config.tableFilter) | |||
if (config.tableFilter.trim.isEmpty) tables.tables.map(_.name) else Seq(config.tableFilter) |
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.
java8 compatible.
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.
How about org.apache.commons.lang3.StringUtils.isBlank
?
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.
trim.isBlank
is sufficient. I don't think we should use StringUtils
.
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.
In general I would avoid using apache commons if the java standard library has to way to achieve the same. Unless of course there is a measurable performance gain :).
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.
CI failure looks like due to #41.
4a8f3ea
to
1e69521
Compare
CI passes, please let me if there's any other issues to be addressed. |
be5edb6
to
0402d67
Compare
0402d67
to
92c1ef2
Compare
runs-on: macos-14 | ||
env: | ||
JAVA_VERSION: ${{ matrix.java_version == 8 && '1.8' || format('{0}', matrix.java_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.
This syntax matrix.java_version == 8 && '1.8'
looks weird. It is evaluated to '1.8'?
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.
Yes, see this example: https://docs.github.com/en/actions/learn-github-actions/expressions#example
Co-authored-by: Liang-Chi Hsieh <[email protected]>
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.
Looks good to me. See if @sunchao has more comments or not.
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.
LGTM, thanks
Which issue does this PR close?
Closes #43
Rationale for this change
Add support for java 1.8
What changes are included in this PR?
io.github.git-commit-id
to 4.9.9 to be compatible with java 1.8How are these changes tested?
updated ci runs.