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

Added precision support in cmd client #4065

Merged
merged 4 commits into from
Sep 14, 2015
Merged

Added precision support in cmd client #4065

merged 4 commits into from
Sep 14, 2015

Conversation

sbouchex
Copy link
Contributor

@sbouchex sbouchex commented Sep 9, 2015

Added precision support in cmd client in order to have the ability to export timestamp in any support format (secondes, hour...)

@otoolep
Copy link
Contributor

otoolep commented Sep 9, 2015

Thanks @sbouchex -- have you signed the CLA?

@beckettsean
Copy link
Contributor

fixes #2675

@sbouchex
Copy link
Contributor Author

@otoolep, yep, already signed.

@otoolep
Copy link
Contributor

otoolep commented Sep 10, 2015

+1 from me. @corylanou ?

@otoolep
Copy link
Contributor

otoolep commented Sep 10, 2015

Confirmed CLA signed.

@@ -30,6 +30,8 @@ var (
const (
// defaultFormat is the default format of the results when issuing queries
defaultFormat = "column"

defaultPrecision = ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the default precision is actually nanos, right? So can you set this correctly?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for defaulting to nano

@otoolep
Copy link
Contributor

otoolep commented Sep 10, 2015

1 question what the default should actually be.

@sbouchex
Copy link
Contributor Author

OK, fine, I can change to nano and I will add an option to return 'RFC3339' since it can be understood more easily.

So to confirm:

  • 'ns' is the default precision in the command line client only
  • 'rfc3339' option is added to support RFC3339 time format

Client library part is not changed

@otoolep
Copy link
Contributor

otoolep commented Sep 14, 2015

Works for me. @corylanou ?

@corylanou
Copy link
Contributor

+1

otoolep added a commit that referenced this pull request Sep 14, 2015
Added precision support in cmd client
@otoolep otoolep merged commit 05b2e49 into influxdata:master Sep 14, 2015
@sbouchex sbouchex deleted the cmd_add_precision branch September 15, 2015 08:40
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

Successfully merging this pull request may close these issues.

4 participants