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

Questions regarding FluxColumn type #559

Open
admo-1 opened this issue Aug 1, 2023 · 2 comments
Open

Questions regarding FluxColumn type #559

admo-1 opened this issue Aug 1, 2023 · 2 comments

Comments

@admo-1
Copy link

admo-1 commented Aug 1, 2023

FluxColumn has a string property called DataType. What are the possible values this property can take? Is there a list, apart from the DataType doc?
Some possible values make sense (int, double, string) but others like dateTime:RFC3339 seem a bit confusing.

@powersj
Copy link
Contributor

powersj commented Aug 22, 2023

Hi,

First, take a look at the line protocol docs here. They explain the various types that a field can be set to: float, integer, uinteger, string, boolean.

The python numeric types of int and float take care of the corresponding line protocol types. String will return as string. Booleans I believe come back as int as well, but I'm not 100% certain.

others like dateTime:RFC3339 seem a bit confusing.

Line protocol comes with timestmap, that is what the date time field is.

@admo-1
Copy link
Author

admo-1 commented Aug 23, 2023

Boolean return as boolean. This uncertainty is exactly why I asked this question. And I wonder:

  • Why would anyone go to the line protocol docs to look for this particular information I am asking for? Data can be written in other ways.
  • Is this docs providing a comprehensive answer to this need? I do not feel like it does. The dateTime:RFC3339 is a perfect example of that. Another one is unsignedLong which corresponds to UInteger in the docs you mention.

As a developer trying to read data from InfluxDb, how can I make use of the DataType property when I do not know for certain what values it can have?

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

2 participants