Skip to content

Commit

Permalink
Merge pull request #5897 from Flowminder/flowetl-null-bug
Browse files Browse the repository at this point in the history
Look for COUNT instead of just first row in data_present_sensor
mergify[bot] authored Feb 20, 2023
2 parents 1bdc258 + 9f72d53 commit d8777b9
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Fixed

- Null values in first column of first row of ingested data no longer cause flowetl to skip ingestion [#5090](https://github.com/Flowminder/FlowKit/issues/5090)

## [1.18.2]

## Fixed
2 changes: 1 addition & 1 deletion flowetl/flowetl/flowetl/sensors/data_present_sensor.py
Original file line number Diff line number Diff line change
@@ -6,6 +6,6 @@

DataPresentSensor = fixed_sql_operator(
class_name="DataPresentSensor",
sql="SELECT * FROM {{ staging_table }} LIMIT 1;",
sql="SELECT EXISTS(SELECT * FROM {{ staging_table }} LIMIT 1);",
is_sensor=True,
)

0 comments on commit d8777b9

Please sign in to comment.