I opened a ticket to track the issue here:
https://geomesa.atlassian.net/browse/GEOMESA-2175
As a work-around, you could query with a transformation that turns
your attribute into a string for grouping, something like:
new Query(typeName, filter, new String[] { "myInt", "dtg", "geom",
"grouping=strConcat('g', myInt)"})
Then group by "grouping".
Thanks,
Emilio
On 02/07/2018 09:47 AM, GRISOT, REMI
wrote:
Hi,
I try to use the Geomesa Point2Point Process and I figured out
that if the "groupingField" parameter is an Integer, the process
fails, throwing a ClassCastException. I did not test with other
types, but I think it will be the same except for String. I
looked into the code of the process on Github, and I think the
problem comes from
line 74 in the
org/locationtech/geomesa/process/analytic/Point2PointProcess.scala
file, as it tries to cast an Integer to a String. Do you see any
workaround to that problem?
Thank you!
Rémi
Ce message et toutes les pièces jointes (ci-après le "message")
sont établis à l’intention exclusive des destinataires désignés.
Il contient des informations confidentielles et pouvant être
protégé par le secret professionnel. Si vous recevez ce message
par erreur, merci d'en avertir immédiatement l'expéditeur et de
détruire le message. Toute utilisation de ce message non conforme
à sa destination, toute diffusion ou toute publication, totale ou
partielle, est interdite, sauf autorisation expresse de
l’émetteur. L'internet ne garantissant pas l'intégrité de ce
message lors de son acheminement, Atos (et ses filiales)
décline(nt) toute responsabilité au titre de son contenu. Bien que
ce message ait fait l’objet d’un traitement anti-virus lors de son
envoi, l’émetteur ne peut garantir l’absence totale de logiciels
malveillants dans son contenu et ne pourrait être tenu pour
responsable des dommages engendrés par la transmission de l’un
d’eux.
This message and any attachments (the "message") are intended
solely for the addressee(s). It contains confidential information,
that may be privileged. If you receive this message in error,
please notify the sender immediately and delete the message. Any
use of the message in violation of its purpose, any dissemination
or disclosure, either wholly or partially is strictly prohibited,
unless it has been explicitly authorized by the sender. As its
integrity cannot be secured on the internet, Atos and its
subsidiaries decline any liability for the content of this
message. Although the sender endeavors to maintain a computer
virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages
resulting from any virus transmitted.
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-users
|