Skip to content

[FEATURE] Support like push down when calcite is enabled #3669

Closed

Description

@penghuo

Is your feature request related to a problem?

###
PUT {{baseUrl}}/ppl_test_logs
Content-Type: application/x-ndjson

{
    "mappings": {
        "properties": {
            "date": {
                "type": "date_nanos" 
            },         
            "message": {
                "type": "text"
            }         
        }
    }
}

###
POST {{baseUrl}}/ppl_test_logs/_doc
Content-Type: application/x-ndjson

{
    "date":  1420070400, 
    "message": "This is a text field 1"
}

###
POST {{baseUrl}}/ppl_test_logs/_doc
Content-Type: application/x-ndjson

{
    "date":  1420070400,    
    "message": "This is a text field 2"
}
  • explain query, like function should push down when calcite enabled
###
POST {{baseUrl}}/_plugins/_ppl/_explain
Content-Type: application/x-ndjson

{
    "query": "source = ppl_test_logs | where like(message, '%field 1%') | fields body"
}

{
  "calcite": {
    "logical": "LogicalProject(body=[$0])\n  LogicalFilter(condition=[ILIKE($2, '%field 1%':VARCHAR)])\n    CalciteLogicalIndexScan(table=[[OpenSearch, ppl_test_logs]])\n",
    "physical": "EnumerableCalc(expr#0..1=[{inputs}], expr#2=['%field 1%':VARCHAR], expr#3=[ILIKE($t1, $t2)], body=[$t0], $condition=[$t3])\n  CalciteEnumerableIndexScan(table=[[OpenSearch, ppl_test_logs]], PushDownContext=[[PROJECT->[body, message]], OpenSearchRequestBuilder(sourceBuilder={\"from\":0,\"timeout\":\"1m\",\"_source\":{\"includes\":[\"body\",\"message\"],\"excludes\":[]}}, requestedTotalSize=10000, pageSize=null, startFrom=0)])\n"
  }
}

What solution would you like?
Support like push down when calcite is enabled

Activity

  1. added
    enhancement
    calcite
    PPL
    on May 23, 2025
  2. added
    performance
    enhancement
    and removed
    enhancement
    on May 27, 2025
  3. LantaoJin commented on May 30, 2025

    @LantaoJin
    Member

    It's related to script pushdown (udf), move under #3379

  4. added
    pushdown
    on May 30, 2025
  5. LantaoJin commented on May 30, 2025

    @LantaoJin
    Member

    @penghuo how about close this one after being linked to its duplicated (parent) issue?

  6. moved this from Not Started to Done in PPL Trackeron Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLcalciteenhancementperformancepushdown

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions