[ https://issues.apache.org/jira/browse/AIRFLOW-2118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anonymous reassigned AIRFLOW-2118: ---------------------------------- Assignee: Diane Ivy > get_pandas_df does always pass a list of rows to be parsed > ---------------------------------------------------------- > > Key: AIRFLOW-2118 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2118 > Project: Apache Airflow > Issue Type: Bug > Components: contrib, hooks > Affects Versions: 1.9.0 > Environment: pandas-gbp 0.3.1 > Reporter: Diane Ivy > Assignee: Diane Ivy > Priority: Minor > Labels: easyfix > Original Estimate: 1h > Remaining Estimate: 1h > > While trying to parse the pages in get_pandas_df if only one page is returned > it starts popping off each row and then the gbq_parse_data works incorrectly. > {{while len(pages) > 0:}} > {{ page = pages.pop()}} > {{ dataframe_list.append(gbq_parse_data(schema, page))}} > Possible solution: > {{from google.cloud import bigquery}} > {{if isinstance(pages[0], bigquery.table.Row):}} > {{ pages = [pages]}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)