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
[FLINK-4111] [table] Flink Table & SQL doesn't work in very simple example #2209
Conversation
@@ -126,14 +125,15 @@ under the License. | |||
<plugin> | |||
<groupId>net.alchim31.maven</groupId> | |||
<artifactId>scala-maven-plugin</artifactId> | |||
<version>3.1.4</version> | |||
<version>3.2.2</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.
Why did you update the plugin version?
The problem is now that we are using different plugin versions across the project.
I would suggest to remove the plugin versions from all usages of the plugin and put it into the pluginManagement
section of the root-pom.
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.
I used the newest library flink-cep-scala
as reference. We are already using different plugin versions. I will introduce a global variable for all projects.
Are all the dependencies you removed really not needed or are they needed, but present because they are pulled in transitively? The problem with the suggested shading is that you are not relocating calcite, which means that we have calcite in the org.apache.calcite namespace, in our flink package. I would exclude slf4j and jackson from the shading. Do you know why the relocation of calcite doesn't work? Do you think there is an issue with relocating class files produced by the scala compiler? |
@rmetzger I have reworked the I could not relocate I have introduced a global scala maven plugin version for all scala modules. |
I think the change is good to merge. |
Thanks @rmetzger. I would merge it today if there are no objections. |
Merging... |
Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.
If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the How To Contribute guide.
In addition to going through the list, please provide a meaningful description of your changes.
mvn clean verify
has been executed successfully locally or a Travis build has passedThis PR reworks the
flink-table
pom.xml
. It simplifies the file, removes unnecessary dependencies and allows to build jobs withflink-table
dependency.@rmetzger @tillrohrmann Would be great if you could take a look on it.