2626class EsqlClient (NamespacedClient ):
2727
2828 @_rewrite_parameters (
29- body_fields = ("query" , "version" , " columnar" , "filter" , "locale" , "params" ),
29+ body_fields = ("query" , "columnar" , "filter" , "locale" , "params" ),
3030 ignore_deprecated_options = {"params" },
3131 )
3232 async def query (
3333 self ,
3434 * ,
3535 query : t .Optional [str ] = None ,
36- version : t .Optional [t .Union ["t.Literal['2024.04.01']" , str ]] = None ,
3736 columnar : t .Optional [bool ] = None ,
3837 delimiter : t .Optional [str ] = None ,
3938 error_trace : t .Optional [bool ] = None ,
@@ -53,8 +52,6 @@ async def query(
5352
5453 :param query: The ES|QL query API accepts an ES|QL query string in the query
5554 parameter, runs it, and returns the results.
56- :param version: The version of the ES|QL language in which the "query" field
57- was written.
5855 :param columnar: By default, ES|QL returns results as rows. For example, FROM
5956 returns each individual document as one row. For the JSON, YAML, CBOR and
6057 smile formats, ES|QL can return the results in a columnar fashion where one
@@ -71,8 +68,6 @@ async def query(
7168 """
7269 if query is None and body is None :
7370 raise ValueError ("Empty value passed for parameter 'query'" )
74- if version is None and body is None :
75- raise ValueError ("Empty value passed for parameter 'version'" )
7671 __path_parts : t .Dict [str , str ] = {}
7772 __path = "/_query"
7873 __query : t .Dict [str , t .Any ] = {}
@@ -92,8 +87,6 @@ async def query(
9287 if not __body :
9388 if query is not None :
9489 __body ["query" ] = query
95- if version is not None :
96- __body ["version" ] = version
9790 if columnar is not None :
9891 __body ["columnar" ] = columnar
9992 if filter is not None :
0 commit comments