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

ElasticSearch adapter can not init rest client with "pathPrefix"

    XMLWordPrintableJSON

    Details

      Description

      when we use elasticsearch adapter, we can only set coordinate or hosts, but we can't set "pathPrefix" to the rest client.
       can we set the calcite model like below,
      {
      "version": "1.0",
      "defaultSchema": "elasticsearch",
      "schemas": [
        {
          "type": "custom",
          "name": "elasticsearch",
          "factory": "org.apache.calcite.adapter.elasticsearch.ElasticsearchSchemaFactory",
          "operand": 

      {                         "coordinates": "\{'127.0.0.1': 9200}

      ",
              "index":"usa",
              "pathPrefix":"pathPrefix"     

          } 

       }]

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danny0405 Danny Chen
                Reporter:
                jeffery-zhang Jeffery Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m