Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-dev] Query result is unstable on geomesa_2.11-2.1.0 against geomesa2.11-2.0.2

Hello,

Would you be willing to try out a potential fix? I've added try/catches around the filter evaluation code, and added a copying of the geotools filter (which I don't think we should need but we were doing previously). I haven't been able to replicate it, but my best guess is that an error was killing scans part-way through, so hopefully the try/catch will allow the scan to continue. The patch is available here:

https://github.com/locationtech/geomesa/pull/2119

Thanks,

Emilio

On 12/10/18 9:30 AM, Emilio Lahr-Vivaz wrote:
Thanks for the detailed debugging. Were you able to see what was ultimately going wrong? That is a new class for 2.1, although it should be a drop-in replacement for the old one. I opened a ticket here and will look into it:

https://geomesa.atlassian.net/browse/GEOMESA-2488

Thanks,

Emilio

On 12/9/18 8:36 PM, 张福高 wrote:

Hi GeoMesa Devs,

Thanks for your answer. By debugging and tracing the source code, I found that in HBaseIndedexAdapter.scala there is a function called scanConfig and I changed some code,

 specifically I used  

                    val remoteCQLFilter = ecql.getOrElse(Filter.INCLUDE)

                    val encodedSft = SimpleFeatureTypes.encodeType(returenSchema)

                   val filter = new JSimpleFeatureFilter(sft, remoteCQLFilter, "", encodedSft)

                   Seq((JSimpleFeatureFilter.Priority, filter))  (2.0.2 source code)

  to substitute  for Seq((CqlTransformFilter.Priority, CqlTransformFilter(schema, ecql, transform))) (2.1.0 source code)  and after that, my polygon query went right.  Is it the difference between JSimpleFeatureFilter and CqlTransformFilter that causes the unstable query result problem?



 



 



 



 



 



 



 


_______________________________________________
geomesa-dev mailing list
geomesa-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-dev


_______________________________________________
geomesa-dev mailing list
geomesa-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-dev


Back to the top