opendistro/opensearch:相当于 DATEDIFF() 函数?
我正在使用doc https:/https:/ /pendistro.github.io/for-elasticsearch-docs/docs/sql/functions/#date-and-pime and https://opensearch.org/docs/latest/search-plugins/sql/sql/functions/#date-and time-pime 但是尚未找到任何功能“ nofollow noreferrer”> datediff()
在Elasticsearch中。
我还尝试了使用日期键入列的算术运算符,并且似乎也无法使用(此查询无法解释):
SELECT timestamp(end_date) - timestamp(start_date) FROM <table>
I'm using the doc https://opendistro.github.io/for-elasticsearch-docs/docs/sql/functions/#date-and-time and https://opensearch.org/docs/latest/search-plugins/sql/functions/#date-and-time but haven't found any function like DATEDIFF()
in elasticsearch.
I also tried the arithmetic operator with date typed column and it doesn't seem to work either (This query is not explainable):
SELECT timestamp(end_date) - timestamp(start_date) FROM <table>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论