Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Make datafeeds work with nanosecond time fields #51180

Merged

Commits on Jan 17, 2020

  1. [ML] Make datafeeds work with nanosecond time fields

    Allows ML datafeeds to work with time fields that have
    the "date_nanos" type.  (Previously datafeeds only
    worked with time fields that had the "date" type.)
    droberts195 committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    c7f4dc8 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. Address review comment

    Co-Authored-By: David Kyle <david.kyle@elastic.co>
    droberts195 and davidkyle committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    9e37865 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cc526d1 View commit details
    Browse the repository at this point in the history
  3. Detect "date_nanos" time fields through more code paths

    The extractor for the primary time field of an anomaly
    detection job is automatically created as a TimeField
    without checking its field caps response, so earlier
    changes in this PR did enough to make that scenario
    work for "date_nanos" fields.  However, the main field
    type detection code was still only accepting "date"
    to create a TimeField.  This change makes it accept
    either or both of "date" and "date_nanos".
    droberts195 committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    4e1a53b View commit details
    Browse the repository at this point in the history
  4. Merge branch 'make_datafeed_work_with_nanosecond_time' of github.com:…

    …droberts195/elasticsearch into make_datafeed_work_with_nanosecond_time
    droberts195 committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    dbf9480 View commit details
    Browse the repository at this point in the history
  5. Use low level functions rather than regex to remove fraction

    Profiling showed the low level version is 3 times faster
    and we do time parsing for every single document fed to
    a job.
    droberts195 committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    809cf1d View commit details
    Browse the repository at this point in the history