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:
[email protected]


Reply via email to