-
-
Save ldenson11/cbf4d25aee796ef5db4c5febb925b83e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- job to identify and route military aircraft to ML pipeline | |
SELECT a.icao as _eventKey, -- New Kafka partition key | |
a.lat, b.lon, b.mfr, b.model, b.type_acft | |
FROM airplanes | |
JOIN airplanes_registrations | |
ON a.icao = b.icao | |
WHERE a.type_registrant = 5 -- Government registration | |
AND country <> 'US' -- US registrations only |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment