-
Notifications
You must be signed in to change notification settings - Fork 889
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
date aggregation component updates #3887
Comments
@raintygao thanks for raising this issue. Can you contribute the change to the repo for the new agg params that you are trying to use? I can help support you with the change necessary. It looks like you will need to add these agg types to the data plugin like the geohash and then expose them in the agg_types file. There may be a few ore chnages necessary other than this, but let me know if you run into any issues making these changes. |
@ashwin-pc Thank you Ashwin. I may be able to find some time to contribute, but it may be late and take a long time because |
@raintygao I see that for enabling the GeoShapes, the changes is very very minimal, can we pick up that change to make sure that we can enable GeoShape aggregations? Given that input and output of the aggregation is same and as @ashwin-pc has already suggested that he can do the PR, I feel its a quick change. |
Sure I think I can do that if changes are minimal.
|
@raintygao yes that is what is required. The aggregation on geo shapes have same input and output payload as that of Geopoint |
@raintygao We don't have to update the Buckets component/section. Will build our own buckets since it is applicable for Maps only. |
@navneet1v @VijayanB Hi guys, I just want to confirm again, can we directly change the default field type of geotile aggregation and geohash aggregation from [geo_point] to [geo_point, geo_shape] ? As you guys replied before, |
I see no issues. Even later on also the fields needs to be updated. |
@raintygao I believe this will not affect coordinate map to show geo_shape fields for selection. |
@navneet1v @VijayanB There is another very important issue. I use latest public 2.6 version of OpenSearch and created an index with geo_shape filed. But the aggregatable attribute of this field is false, which means that we can't aggregate this attribute directly in dashboard anyway. On the contrary, geo_point is ok. This may be caused by the default logic of OpenSearch and I don't find any ways for users to modify this value. Do you know why? This will directly affect our support for geo_shape. |
The aggregation code to do geoshape aggregation is not in 2.c branch. It is in main branch. I would recommend using 3.0 version. Once we know that in which version of Opensearch geoshape aggregation is going we are going to backport the code during in version. This is the reason you don't see geoshape aggregation enabled in anybof 2.x version. |
@navneet1v OK, I think the support of geo shape in OSD depends on the support in OS. So do you mean I can directly use main branch to do integration test?
Does this mean that the corresponding code for the main branch will not be released until support is started in the OSD? |
Yes. So lets say we plan that geoshape aggregation is going to be launched in 2.8. I will go ahead and backport the changes in 2.x branch which will become 2.8. But if we say geoshape aggregation will be supported in 2.9 in OSD, then I will backport changes in 2.x after 2.8 launch. The reason we need to do this is because 2.x branch contains next minor release changes. This is the reason I am saying you can work on main branch which is 3.0 version for OS, OSD and dashboards-maps. Once we develop on main and complete the PR for geoshape aggregation we will have a better understanding whether geoshape aggregation will be launched or not in next minor release. |
Yes you can use main branch for development and testing. Just make sure all the components have same version. Which is OS, OSD and dashboards-maps on main branch which is 3.0 version. |
Is your feature request related to a problem? Please describe.
My team has a new feature target for 2.8 in external plugin, in this feature we will do data aggregation. I tried to build using agg_params component that is consistent with OSD and found two features that are not supported in OSD but are supported in OpenSearch.
agg_params
component?GEO_POINT
type field, can we supportGEO_SHAPE
type field?Describe the solution you'd like
We hope that the OSD core team can update these on the original
agg_params
component, or please let me know if there are already other ways to implement it.The text was updated successfully, but these errors were encountered: