You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/17 15:59:46 UTC

[GitHub] [airflow] owlphi opened a new issue #13137: Bigquery hook: get-schema (not working)

owlphi opened a new issue #13137:
URL: https://github.com/apache/airflow/issues/13137


   # Problem
   This line does not return a valid schema:
   `return {"fields": [s.to_api_repr for s in table.schema]}`
   
   The reason is that `s.to_api_repr` we forgot to invoke the function using `s.to_api_repr()`
   
   # Solution 
   Change from: 
   `return {"fields": [s.to_api_repr for s in table.schema]}`
   to: 
   ```
   return {"fields": [s.to_api_repr() for s in table.schema]}
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] owlphi closed issue #13137: Bigquery hook: get-schema (not working)

Posted by GitBox <gi...@apache.org>.
owlphi closed issue #13137:
URL: https://github.com/apache/airflow/issues/13137


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] owlphi commented on issue #13137: Bigquery hook: get-schema (not working)

Posted by GitBox <gi...@apache.org>.
owlphi commented on issue #13137:
URL: https://github.com/apache/airflow/issues/13137#issuecomment-747531218


   I have created a PR https://github.com/apache/airflow/pull/13136


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org