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

strftime(X, Y) function #50

Open
tombonfert opened this issue Nov 17, 2021 · 0 comments
Open

strftime(X, Y) function #50

tombonfert opened this issue Nov 17, 2021 · 0 comments

Comments

@tombonfert
Copy link
Contributor

tombonfert commented Nov 17, 2021

  • Takes a UNIX time value, X, as the first argument and renders the time as a string using the format specified by Y.
  • The UNIX time must be in seconds (from the Splunk documentation)
    • It is also possible to provide a field of timestamp type (e.g. ‘_time’) for argument X (see example)
  • We do not support X in seconds, but only in timestamp format. We are applying Spark's 'date_format' function.
  • Solution: Depending on the input type (seconds vs. timestamp) we need to apply either the ‘from_unixtime’ or ‘date_format’ function
    • Problem: If X is a field, we are not able to determine the data type of X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant