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

The value of last column is always null. #772

Closed
neuroid opened this issue Jul 21, 2014 · 5 comments
Closed

The value of last column is always null. #772

neuroid opened this issue Jul 21, 2014 · 5 comments

Comments

@neuroid
Copy link

neuroid commented Jul 21, 2014

Hi,

I'm testing InfluxDB 0.8.0-rc.2 (installed using the provided deb package). I'm using the default config provided in the deb. I have run into the following issue:

I'm creating a single point in an empty series:

[
    {
        "columns": [
            "column1", 
            "column2"
        ], 
        "name": "events", 
        "points": [
            [
                "value1", 
                "value2"
            ]
        ]
    }
]

After performing a select * from events; query I get the following result:

[
    {
        "columns": [
            "time", 
            "sequence_number", 
            "column1", 
            "column2"
        ], 
        "name": "events", 
        "points": [
            [
                1405956386426, 
                1118560001, 
                "value1", 
                null
            ]
        ]
    }
]

After adding another point with a third column, I get the following result for the same query:

[
    {
        "columns": [
            "time", 
            "sequence_number", 
            "column1", 
            "column2", 
            "column3"
        ], 
        "name": "events", 
        "points": [
            [
                1405957172332, 
                1118350001, 
                "value1", 
                "value2", 
                null
            ], 
            [
                1405956446265, 
                1118340001, 
                "value1", 
                "value2", 
                null
            ]
        ]
    }
]

It seems that the values for the last column are always null. Is this a know issue? This was working fine in 0.7.

@jvshahid
Copy link
Contributor

Unfortunately I can't reproduce this issue locally. Is it possible to reproduce the issue on a fresh installation or share your data with us.

@neuroid
Copy link
Author

neuroid commented Jul 21, 2014

I just removed the package, nuked /opt/influxdb and installed the package again. Still getting the same issue. Below is a link the entire /opt/influxdb directory. I hope that's ok.

https://www.dropbox.com/s/n2ge4ii4xiozdum/influxdb.tar.gz

@jvshahid
Copy link
Contributor

Do you have a script that I can run locally ?

@neuroid
Copy link
Author

neuroid commented Jul 21, 2014

#!/bin/sh

DATA='[
    {
        "columns": [
            "column1",
            "column2"
        ],
        "name": "events",
        "points": [
            [
                "value1",
                "value2"
            ]
        ]
    }
]'

curl -d "$DATA" "http://127.0.0.1:8086/db/test/series?u=root&p=root"

QUERY="select%20*%20from%20events%3B"

curl "http://127.0.0.1:8086/db/test/series?u=root&p=root&q=$QUERY&pretty=true"

The output I'm getting:

[el@segfault ~]$ ./influxdb_issue.sh 
[
    {
        "name": "events",
        "columns": [
            "time",
            "sequence_number",
            "column1",
            "column2"
        ],
        "points": [
            [
                1405959747818,
                40001,
                "value1",
                null
            ]
        ]
    }
]

@jvshahid
Copy link
Contributor

Great I can reproduce it locally using the script

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