presto-elasticsearch connector

elasticsearch搜索功能强劲,就是查询语法复杂,presto提供了很是open的plugin机制,我改进了下原有的presto-elasticsearch connector,现发布于githubgit

功能改进点

  • 自动加载elasticsearch schema
  • 支持分片数据加载
  • predication pushdown,注意因为presto spi接口的缘由,目前只支持and类型的过滤器下推,对于OR表达式不支持,不支持like类型的过滤器下推
  • 避免重复加载schema

运行办法
在etc/catalog目录下添加es.properties便可,内容以下github

connector.name=elasticsearch
elasticsearch-server=localhost
elasticsearch-port=9300
elasticsearch-clustername=elasticsearch_demo

时间仓促,错误在所不免,欢迎批评指正。elasticsearch

git地址

https://github.com/hseagle/presto
版本: es_prorest

相关文章
相关标签/搜索