Skip to content
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

Potential bug for 3d point arrays in geo_polygon queries #55741

Closed
mbarretta opened this issue Apr 24, 2020 · 3 comments
Closed

Potential bug for 3d point arrays in geo_polygon queries #55741

mbarretta opened this issue Apr 24, 2020 · 3 comments
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)

Comments

@mbarretta
Copy link

Elasticsearch version (bin/elasticsearch --version):
7.6.2

JVM version (java -version):
ESS

OS version (uname -a if on a Unix-like system):
ESS

Description of the problem including expected versus actual behavior:
When using a 3d points array in a geo_polygon query, it results in an exception

Steps to reproduce:

PUT /example
{
    "mappings": {
        "properties": {
            "location": {
                "type": "geo_point"
            }
        }
    }
}

POST /example/_doc?refresh
{
    "location": [13.400544, 52.530286]
}

GET /example/_search
{
    "query": {
        "geo_polygon": {
            "location": {
                "points": [
                    [
                       [13.0, 53.0], 
                       [14.0, 52.0]                
                    ],
                    [
                       [13.0, 53.0], 
                       [14.0, 52.0]                
                    ]                   
                ]
            }
        }
    }
}

Output:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "parse_exception",
        "reason" : "numeric value expected"
      }
    ],
    "type" : "parse_exception",
    "reason" : "numeric value expected"
  },
  "status" : 400
}
@mbarretta mbarretta added the :Analytics/Geo Indexing, search aggregations of geo points and shapes label Apr 24, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Geo)

@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Apr 24, 2020
@mbarretta
Copy link
Author

Maybe related to #40447

@iverase
Copy link
Contributor

iverase commented Dec 2, 2021

I had a look and that format is not supported (those are not 3d point arrays). The error might be clearer but it is clearly not supported. As geo_polygon query is deprecated in favour of geo_shape query I am going to close this without further action,

@iverase iverase closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)
Projects
None yet
Development

No branches or pull requests

4 participants