Skip to content

[AIRFLOW-728] Add Google BigQuery table sensor#1970

Closed
bodschut wants to merge 1 commit intoapache:masterfrom
bodschut:feature/bq_sensor
Closed

[AIRFLOW-728] Add Google BigQuery table sensor#1970
bodschut wants to merge 1 commit intoapache:masterfrom
bodschut:feature/bq_sensor

Conversation

@bodschut
Copy link
Copy Markdown
Contributor

@bodschut bodschut commented Jan 4, 2017

Design a sensor that checks whether a certain table is present in bigquery. The sensor will
accept the google cloud project id, bigquery dataset id and bigquery table id to check as
parameters.

Internally, it will use the bigquery hook to check for the existence of the table.
Therefore a 'table_exists' method will be added to the existing Bigquery hook.

Dear Airflow Maintainers,

Please accept this PR that addresses the following issues:

Testing Done:

  • Testing was done in production

Design a sensor that checks whether a certain table is present in bigquery. The sensor will
accept the google cloud project id, bigquery dataset id and bigquery table id to check as
parameters.

Internally, it will use the bigquery hook to check for the existence of the table.
Therefore a 'table_exists' method will be added to the existing Bigquery hook.
@codecov-io
Copy link
Copy Markdown

Current coverage is 67.01% (diff: 100%)

Merging #1970 into master will decrease coverage by <.01%

@@             master      #1970   diff @@
==========================================
  Files           135        135          
  Lines         10255      10255          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           6873       6872     -1   
- Misses         3382       3383     +1   
  Partials          0          0          

Powered by Codecov. Last update 9df4789...97b2424

@alexvanboxel
Copy link
Copy Markdown
Contributor

For me this is a +1. @criccomini could you take a look. @bolkedebruin if Chris approves can we take it with the alpha?

@bolkedebruin
Copy link
Copy Markdown
Contributor

@alexvanboxel sure.

@bolkedebruin
Copy link
Copy Markdown
Contributor

@criccomini ping :)

@alexvanboxel
Copy link
Copy Markdown
Contributor

Now if @criccomini doesn't look this one over by tonight I like to merge this one anyway so I can build a new version on-top of master for the final freeze.

@asfgit asfgit closed this in 617ba74 Jan 9, 2017
@criccomini
Copy link
Copy Markdown
Contributor

Sorry all. Been side tracked on other stuff, but +1 anyway. :)

alekstorm pushed a commit to alekstorm/incubator-airflow that referenced this pull request Jun 1, 2017
Design a sensor that checks whether a certain
table is present in bigquery. The sensor will
accept the google cloud project id, bigquery
dataset id and bigquery table id to check as
parameters.

Internally, it will use the bigquery hook to check
for the existence of the table.
Therefore a 'table_exists' method will be added to
the existing Bigquery hook.

Closes apache#1970 from bodschut/feature/bq_sensor
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

Successfully merging this pull request may close these issues.

5 participants