You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fokko Driesprong (JIRA)" <ji...@apache.org> on 2018/07/24 09:25:00 UTC
[jira] [Resolved] (AIRFLOW-2792) Druid ingestion fails because of
unicode.
[ https://issues.apache.org/jira/browse/AIRFLOW-2792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fokko Driesprong resolved AIRFLOW-2792.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Issue resolved by pull request #3633
[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)