question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transform.GetAsync() not deserializing a percentiles aggregation with a script

See original GitHub issue

NEST/Elasticsearch.Net version: 7.12.1

Elasticsearch version: 7.11.2

Description of the problem including expected versus actual behavior: I have a transform with an aggregation like this

            "my_median": {
                "percentiles": {
                    "script": "doc['field'].value * 2",
                    "percents": [
                        50
                    ]
                }
            }

But calling Transform.GetAsync() on that transform returns an object with the Script field as null

image

Steps to reproduce:

  1. Create transform with a median aggregation based on a script
  2. call Transform.GetAsync()
  3. inspect returned object

Expected behavior The Script field should be non-null and match the transform definition

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stevejgordoncommented, May 17, 2021

Thanks for confirming @karoberts. I’ll keep this open to track whether this can be safely implemented in 7.x.

0reactions
stevejgordoncommented, Jan 31, 2022

@karoberts Apologies for the long delay on this one. I have added a serialisation fix which adds support for the string-based scripts that will go out in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Percentiles aggregation | Elasticsearch Guide [8.9]
A multi-value metrics aggregation that calculates one or more percentiles over numeric values extracted from the aggregated documents.
Read more >
HttpClient
This post shows how HTTP route parameters, a HTTP request body or HTTP request query string parameters can be used for authorization in...
Read more >
Apache Solr Release Notes
Apache Solr is an open source enterprise search server based on the Apache Lucene Java search library, with XML/HTTP and JSON APIs, hit...
Read more >
Elasticsearch version 7.6.0
New Histogram field mapper that supports percentiles aggregations. ... Scripting: ScriptFactory not required by compile #50344 (issue: ...
Read more >
Lettuce Reference Guide
An aggregation of values can be achieved using the reduce() transformation. It applies a function to each value emitted by a Publisher<T> ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found