Skip to content

date_histogram offset #821

@zhyh1105

Description

@zhyh1105

在使用date_histogram函数时,field如果是long类型的时间戳,想设置offset时,发现不行,查看源码org.nlpcn.es4sql.query.maker.AggMaker.dateHistogram(MethodField field)时发现switch里没有对offset参数进行处理,需添加如下代码

case "offset":
    dateHistogram.offset(value);
    break;

发现好几个版本都有类似情况,不知是有意不处理offset参数,还是忘了呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions