[
https://issues.apache.org/jira/browse/AIRFLOW-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kaxil Naik resolved AIRFLOW-643.
--------------------------------
Fix Version/s: 1.8.0
Resolution: Fixed
> 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
> Fix For: 1.8.0
>
>
> 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
(v8.3.4#803005)