-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix no poke #6448
Fix no poke #6448
Conversation
Passing run #21697 ↗︎
Details:
Review all test suite changes for PR #6448 ↗︎ |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #6448 +/- ##
==========================================
- Coverage 92.97% 92.95% -0.02%
==========================================
Files 263 264 +1
Lines 10302 10304 +2
Branches 835 835
==========================================
Hits 9578 9578
- Misses 596 598 +2
Partials 128 128 ☔ View full report in Codecov by Sentry. |
… file is not there or otherwise cant be accessed
cbb6f85
to
a0eb432
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach makes sense. Although this still leaves us in the situation of using the fail/retry mechanism in lieu of a sensor; it's just that it will now be the CreateForeignStagingTableOperator
task that fails and retries until the file appears, rather than the "wait for data" task. I wonder whether we could add a FileExistsSensor
before creating the foreign table, using pg_stat_file
or similar?
Yeah I think possible - when I originally looked at the docs for stat_file I read it as limited to just the pg directories, but actually on re-reading that's only the case sans super user which the executing user here is. |
Might be better off with |
Closes #5763
I have:
Description
Identifying why a file fdw table can't be read is as it turns out not possible. That means we can't poke only on missing files. Hence what I've done is to make the foreign table wrapper error if the table can't be read, and add an extra sensor which let's you require some number of rows be present rather than just that there's at least a header.