-
Notifications
You must be signed in to change notification settings - Fork 66
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
Return all chip geometries #98
Conversation
UUps. I screwed something up when merging Master. On it |
@milos-colic @sllynn I am getting an index out of bound exception that I don't understand. |
Good to go, I think? Thanks @edurdevic |
looks good to me as well |
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 great, thanks @edurdevic .
A couple of style things but otherwise love it.
src/main/scala/com/databricks/labs/mosaic/core/types/model/MosaicChip.scala
Show resolved
Hide resolved
src/main/scala/com/databricks/labs/mosaic/expressions/index/MosaicExplode.scala
Show resolved
Hide resolved
src/main/scala/com/databricks/labs/mosaic/expressions/index/MosaicFill.scala
Show resolved
Hide resolved
Oh - and let's update the python bindings / docs to reflect. @edurdevic are you happy to have a bash at that? If not, I'll happily take a look. |
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.
needs fixing copy call in withNewChildren in MosaicFill
src/main/scala/com/databricks/labs/mosaic/expressions/index/MosaicFill.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/databricks/labs/mosaic/core/types/model/MosaicChip.scala
Show resolved
Hide resolved
@sllynn @milos-colic I updated all references to h3_mosaicfill, but I found many more references to h3_* in the docs. |
All good from my side! |
Do we still need to update the python bindings? |
You are right @sllynn, I thought you intended bindings for the h3_ refactoring I did... But I am missing the keepCoreGoemetry parametr in python. |
I have to fix the conflicts and also I noticed that mosaic_explode is missing some bindings, let me cover that with a test before we merge |
# Conflicts: # python/mosaic/api/functions.py # python/test/test_functions.py
@sllynn I am not able to understand why one of the new tests I created is failing. I am passing a boolean parameter with Could you please take a look? |
Hey @edurdevic, I think there was an issue with the way you were registering the SQL function. I think my latest commit fixed it, please take a look. |
OK, you'll need to update the python bindings to reflect the new set of arguments. python/mosaic/api/functions.py#596 |
Wow, thanks for noticing the python bindings again @sllynn ! |
@sllynn The python bindings should be fine now. Please take a look |
@edurdevic I have merged main into the PR to make sure the other PRs that were merged since this was opened do not break anything. If the build passes we can merge this one. |
@sllynn this needs your approval since you requested changes in the past. |
Hello team,
I have added a parameter to configure the return of geometries for core chips.
Please do not spare any comment, this is a great learning opportunity for me ;)