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

OnGround and FlightStatus Inaccuracies #118

Open
tardoe opened this issue Dec 17, 2022 · 0 comments
Open

OnGround and FlightStatus Inaccuracies #118

tardoe opened this issue Dec 17, 2022 · 0 comments
Assignees

Comments

@tardoe
Copy link
Member

tardoe commented Dec 17, 2022

The OnGround flag appears to sometimes not be set when the FlightStatus indicates the plane is on the ground.

SELECT count(*)
FROM location_updates_high
WHERE (OnGround = 0) AND (FlightStatus = 'Normal, On the ground')

Query id: 3dd1135f-e653-4337-b90e-955e8093e734

┌─count()─┐
│ 1974772 │
└─────────┘

1 rows in set. Elapsed: 0.885 sec. Processed 137.14 million rows, 3.17 GB (154.89 million rows/s., 3.58 GB/s.)

The inverse appears to be correct (Airbourne)

SELECT count(*)
FROM location_updates_high
WHERE (OnGround = 1) AND (FlightStatus = 'Normal, Airbourne')

Query id: c035f6c8-7285-4947-b4f0-b97f7361fbee

┌─count()─┐
│       0 │
└─────────┘

1 rows in set. Elapsed: 0.774 sec. Processed 137.18 million rows, 3.17 GB (177.34 million rows/s., 4.09 GB/s.)

While there is also some correct indicators but it's far fewer.

SELECT count(*)
FROM location_updates_high
WHERE (OnGround = 1) AND (FlightStatus = 'Normal, On the ground')

Query id: ffe6d44a-14af-46bc-9c44-420afe878e39

┌─count()─┐
│  735577 │
└─────────┘

1 rows in set. Elapsed: 0.805 sec. Processed 137.20 million rows, 3.17 GB (170.41 million rows/s., 3.93 GB/s.)

Similarly there appears to be a lot of flights with an Altitude > 10,000ft with a status of "Normal, On the ground" where OnGround = 0, likely correctly which makes the status incorrect.

SELECT count(*)
FROM location_updates_high
WHERE (OnGround = 0) AND (Altitude > 10000) AND (FlightStatus = 'Normal, On the ground')
LIMIT 100

Query id: 3566519a-c6d4-43ac-bf0c-a7559f95af16

┌─count()─┐
│ 1608113 │
└─────────┘

1 rows in set. Elapsed: 1.388 sec. Processed 137.51 million rows, 3.72 GB (99.10 million rows/s., 2.68 GB/s.)
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