-
Notifications
You must be signed in to change notification settings - Fork 717
[GH-1918] Spark 4 support #1919
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
Changes from 21 commits
53c2dd6
5899a21
3a86979
a803f22
baf6671
772fd07
3392a9e
1887a1d
500872f
6750e7d
c2942ce
de401ab
5531f2b
e784494
ad0411d
81edc3c
ba1c79a
531d4dd
ad28e5d
fa9d218
2a9fc55
04c93be
ffebe86
8c606df
1fdfbef
8befa97
4771e52
daac5f1
1d15cfd
d9326b0
acfc191
770ef84
7bf2a25
b2362a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,12 +106,6 @@ | |
<artifactId>jt-jiffle-language</artifactId> | ||
</dependency> | ||
<!-- These test dependencies are for running map algebra tests --> | ||
<dependency> | ||
<groupId>org.antlr</groupId> | ||
<artifactId>antlr4-runtime</artifactId> | ||
<version>${antlr-runtime.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.janino</groupId> | ||
<artifactId>janino</artifactId> | ||
|
@@ -134,6 +128,67 @@ | |
<target>8</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<!-- Skip running resolved-pom-maven-plugin since shade will | ||
generate dependency reduced pom which substitutes property | ||
values. resolved-pom-maven-plugin will break pom | ||
installation when working with maven-shade-plugin. --> | ||
<groupId>io.paradoxical</groupId> | ||
<artifactId>resolved-pom-maven-plugin</artifactId> | ||
<version>1.0</version> | ||
<executions> | ||
<execution> | ||
<id>resolve-my-pom</id> | ||
<phase>none</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<!-- We need to shade jiffle and it's antlr dependency because Spark 4 uses an | ||
incompatible version of antlr at runtime. --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we shade it in geotools-wrapper so that no dependency reduced pom will be generated when building sedona-common? @jiayuasu There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It definitely needs to be shaded locally for the tests to work. I'm not 100% sure if the release could just be shaded into geotools-wrapper or not. My concern was if you somehow have jiffle as a separate dependency, those classes would be used with the provided antlr and not the relocated antlr dependency |
||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<artifactSet> | ||
<includes> | ||
<include>it.geosolutions.jaiext.jiffle:*</include> | ||
<include>org.antlr:*</include> | ||
</includes> | ||
</artifactSet> | ||
<relocations> | ||
<relocation> | ||
<pattern>it.geosolutions.jaiext.jiffle</pattern> | ||
<shadedPattern>org.shaded.jiffle</shadedPattern> | ||
<excludes> | ||
<exclude>it.geosolutions.jaiext.jiffle.runtime.*</exclude> | ||
</excludes> | ||
</relocation> | ||
<relocation> | ||
<pattern>org.antlr.v4.runtime</pattern> | ||
<shadedPattern>org.shaded.antlr</shadedPattern> | ||
</relocation> | ||
</relocations> | ||
<filters> | ||
<!-- filter to address "Invalid signature file" issue - see http://stackoverflow.com/a/6743609/589215 --> | ||
<filter> | ||
<artifact>*:*</artifact> | ||
<excludes> | ||
<exclude>META-INF/*.SF</exclude> | ||
<exclude>META-INF/*.DSA</exclude> | ||
<exclude>META-INF/*.RSA</exclude> | ||
</excludes> | ||
</filter> | ||
</filters> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.spark.sql.sedona_sql.expressions | ||
|
||
import org.apache.spark.sql.catalyst.expressions.NullIntolerant | ||
|
||
trait NullIntolerantShim extends NullIntolerant |
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 was the only way I could figure out to get the scala docs to be aware of the additional source directory