datopian/aircan

Resolve Schema field issue

shubham-mahajan opened this issue · 0 comments

With the new schema changes (https://github.com/datopian/ckanext-aircan/blob/0ba67147cc0fccfca5e32d5ff16ac16f49541ca9/ckanext/aircan_connector/action.py#L28)
the following error is coming.

Traceback (most recent call last)
  File "/usr/local/lib/airflow/airflow/models/__init__.py", line 1491, in _run_raw_tas
    result = task_copy.execute(context=context
  File "/usr/local/lib/airflow/airflow/operators/python_operator.py", line 112, in execut
    return_value = self.execute_callable(
  File "/usr/local/lib/airflow/airflow/operators/python_operator.py", line 117, in execute_callabl
    return self.python_callable(*self.op_args, **self.op_kwargs
  File "/home/airflow/gcs/dags/aircan/dags/api_ckan_load_gcp.py", line 77, in task_create_datastore_tabl
    schema = eval_schema.get('fields'
AttributeError: 'str' object has no attribute 'get