Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6274

Join Elasticsearch index return empty list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • calcite 1.35.0

      elasticsearch 7.x

    Description

      Two index of Elasticsearch join return empty result even if the data from both indexes can match。

      create index test_01:

      PUT /test_01/_doc/1
      {
        "doc_id" : 1,
        "doc_desc" : "doc01"
      } 

      create index test_02:

      PUT /test_02/_doc/1
      {
        "doc_id" : 1,
        "doc_score" : 90
      } 

      execute sql:

      select * from es.test_01 t1 join es.test_02 t2 on cast(t1._MAP['doc_id'] as bigint) = cast(t2._MAP['doc_id'] as bigint) 

      One row of result was expected, but actually get empty. 
       
       
       
       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zoovwang zhaowang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: