You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Giovanni Briggs (JIRA)" <ji...@apache.org> on 2016/11/21 19:19:58 UTC
[jira] [Created] (AIRFLOW-643) Improve coerce_to_timestamp for
salesforce_hook
Giovanni Briggs created AIRFLOW-643:
---------------------------------------
Summary: Improve coerce_to_timestamp for salesforce_hook
Key: AIRFLOW-643
URL: https://issues.apache.org/jira/browse/AIRFLOW-643
Project: Apache Airflow
Issue Type: Bug
Reporter: Giovanni Briggs
Assignee: Giovanni Briggs
Priority: Minor
The salesforce_hook I created allows the user to chose to coerce all date and datetime strings into Unix timestamps. However, the current way this is implemented will cause any string that even remotely resembles a date or datetime to be converted. For example, I just found a field in Salesforce that is used to record the quarter in which an event occurred such as "2016 02." The hook will currently interpret this to mean "2016-02-01" and create a Unix timestamp accordingly which is not accurate.
I've changed the hook to only coerce fields that are of type "date" or "datetime" in Salesforce. All other strings are left alone which is much more inline with the original intention of the feature.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)