You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by GitBox <gi...@apache.org> on 2022/02/14 12:39:08 UTC
[GitHub] [incubator-sedona] madzik555 opened a new pull request #580: Create symmetrical difference function, add test and docs
madzik555 opened a new pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580
## Is this PR related to a proposed Issue?
[SEDONA-82](https://issues.apache.org/jira/browse/SEDONA-82)
## What changes were proposed in this PR?
ST_Symmetrical_Difference function
## How was this patch tested?
Scala, Python integration tests
## Did this PR include necessary documentation updates?
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] madzik555 commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
madzik555 commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1040216494
@jiayuasu Could you take a look at these errors in Github Checks?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] madzik555 commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
madzik555 commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1046281023
I changed the name of the function. On Monday I will introduce corrections to ST_Difference and create a PR for it. Thanks for your comment! 😄
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] yitao-li commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
yitao-li commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1044914785
@edgararuiz so continuing with the comment above, I think if you go to https://github.com/sparklyr/sparklyr/blob/main/inst/extdata/versions.json and replace the URL mentioning spark 3.2.0 with https://dlcdn.apache.org/spark/spark-3.2.1/<the tar ball filename>, then it should fix this problem.
@madzik555 @jiayuasu Meanwhile I think you need to switch to Spark 3.2.1 instead. I'm really not sure what happened to Spark 3.2.0. It seems not accessible anymore : /
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] jiayuasu commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
jiayuasu commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1045195112
@madzik555 This looks great! One last thing: it seems that this function is identical to ST_SymDifference in PostGIS: https://postgis.net/docs/ST_SymDifference.html , right? If so, can you change the name from "ST_Symmetrical_Difference" to "ST_SymDifference"?
We want to be consistent with PostGIS/SQLMM3/OGC Simple Feature.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] madzik555 commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
madzik555 commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1040216494
@jiayuasu Could you take a look at these errors in Github Checks?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] yitao-li edited a comment on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
yitao-li edited a comment on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1044914785
@edgararuiz so continuing with the comment above, I think if you go to https://github.com/sparklyr/sparklyr/blob/main/inst/extdata/versions.json and replace the URL mentioning spark 3.2.0 with https://dlcdn.apache.org/spark/spark-3.2.1/<the tar ball filename>, then it should fix this problem.
@madzik555 @jiayuasu Meanwhile I think you need to switch to Spark 3.2.1 instead. I'm really not sure what happened to spark-3.2.0-bin-hadoop3.2.tgz. It seems not accessible anymore : /
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] yitao-li edited a comment on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
yitao-li edited a comment on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1044902707
Hey @jiayuasu @madzik555 sorry for the delayed response re: sparklyr
I think the problem is https://dlcdn.apache.org/spark/spark-3.2.0/spark-3.2.0-bin-hadoop3.2.tgz used to exist, and in sparklyr, we essentially made an implicit assumption that this type of tar ball, once existed, will exist forever and be accessible from the same location. In particular, see https://github.com/sparklyr/sparklyr/blob/1c091b92d7454fa8af02abe9777efba8fb6c4faa/inst/extdata/versions.json#L497
It looks like the spark-3.2.0 tar ball was removed and replaced with spark-3.2.1, hence breaking this assumption.
I suggest working with the current sparklyr maintainer @edgararuiz to revisit this type of assumption.
cc @edgararuiz
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] madzik555 commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
madzik555 commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1044226755
@Imbruced @jiayuasu I made fixes in ST_SymmetricalDifference to handle null values. Can you check them? :)
Additionally, I would like to introduce the same changes in ST_Difference, should I create a new PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] yitao-li edited a comment on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
yitao-li edited a comment on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1044902707
Hey @jiayuasu @madzik555 sorry for the delayed response re: sparklyr
I think the problem is https://dlcdn.apache.org/spark/spark-3.2.0/spark-3.2.0-bin-hadoop3.2.tgz used to exist, and in sparklyr, we essentially made an implicit assumption that this type of tar ball, once existed, will exist forever and be accessible from the same location. In particular, see https://github.com/sparklyr/sparklyr/blob/1c091b92d7454fa8af02abe9777efba8fb6c4faa/inst/extdata/versions.json#L497
It looks like the spark-3.2.0 tar ball was removed and replaced with spark-3.2.1, hence breaking this assumption.
I suggest working with the current sparklyr maintainer @edgararuiz to revisit this type of assumption.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] Imbruced commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
Imbruced commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1045203977
It looks good to me, also I agree that we should stick with postgis function name. It may be confusing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] madzik555 edited a comment on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
madzik555 edited a comment on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1046281023
I changed the name of the function. On Monday I will introduce corrections to ST_Difference and create a PR for it. Thanks for your comments! 😄
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] jiayuasu commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
jiayuasu commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1039603554
@madzik555 I have fixed the failed docs build. Please pull the latest change from upstream.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] jiayuasu commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
jiayuasu commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1042404557
@madzik555 Yitao might be busy at other stuff. But apparently your PR passed all other tests. You can just fix what @Imbruced suggested and then I will accept this PR regardless of the R tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] jiayuasu merged pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
jiayuasu merged pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] yitao-li commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
yitao-li commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1044902707
Hey @jiayuasu @madzik555 sorry for the delayed response re: sparklyr
I think the problem is https://dlcdn.apache.org/spark/spark-3.2.0/spark-3.2.0-bin-hadoop3.2.tgz used to exist, and in sparklyr, we essentially made an implicit assumption that this type of tar ball, once existed, will exist forever and be accessible from the same location. In particular, see https://github.com/sparklyr/sparklyr/blob/1c091b92d7454fa8af02abe9777efba8fb6c4faa/inst/extdata/versions.json#L497
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] jiayuasu commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
jiayuasu commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1039603554
@madzik555 I have fixed the failed docs build. Please pull the latest change from upstream.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] Imbruced commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
Imbruced commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1041257981
@madzik555 Can you add also tests with null values ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-sedona] jiayuasu commented on pull request #580: [SEDONA-82] Create symmetrical difference function
Posted by GitBox <gi...@apache.org>.
jiayuasu commented on pull request #580:
URL: https://github.com/apache/incubator-sedona/pull/580#issuecomment-1040943561
@yitao-li Hi Yitao, it seems that R build failed because it cannot download Spark. Could you please fix it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org