[ 
https://issues.apache.org/jira/browse/AIRFLOW-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601302#comment-16601302
 ] 

Apache Spark commented on AIRFLOW-2792:
---------------------------------------

User 'happyjulie' has created a pull request for this issue:
https://github.com/apache/incubator-airflow/pull/3633

> Druid ingestion fails because of unicode.
> -----------------------------------------
>
>                 Key: AIRFLOW-2792
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2792
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks
>    Affects Versions: 1.10
>            Reporter: juhwi lee
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Druid Ingestion in druid_hook.py is going to fail because index spec includes 
> unicode.
>  Python uses unicode automatically.
> My index spec values had unicode. So ingestion to druid failed.
>  'intervals': [u'2017-01-01T00:00:00.000Z/2017-01-02T00:00:00.000Z'],
> Payload data dosen't have any unicode if we use not data parameter but json 
> parameter in post requests. Then ingestion succeed
>  "intervals": ["2017-01-01T00:00:00.000Z/2017-01-02T00:00:00.000Z"]
>  
> I referenced document of python-requests.
>  
> [http://docs.python-requests.org/en/master/user/quickstart/#more-complicated-post-requests]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to