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

Enhancement: examples with line protocol could show use of all data types. #75

Open
karel-rehor opened this issue Dec 7, 2023 · 0 comments
Assignees

Comments

@karel-rehor
Copy link
Contributor

Use Case

Users new to line protocol can run into gotcha's when using it for the first time. For example long/integer fields need to have a trailing "i" and string fields need to have values enclosed in quotes.

e.g.

birds,location=marsh value=49.935626,count=20i,species="duck"

If the measurement is created without the trailing "i" for count the field type in IOX will be float and not long. This can lead to schema conflict issues on later writes, for example when using Point instead of line protocol.

Expected behavior

Examples should at least provide hints for how to implement solutions that have special criteria in the line protocol language.

Actual behavior

The current Java example shows how to write only a field of type float.

            //
            // Write by LineProtocol
            //
            String record = "temperature,location=north value=60.0";
            client.writeRecord(record);

Additional info

No response

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