airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giovanni Briggs (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-643) Improve coerce_to_timestamp for salesforce_hook
Date Mon, 21 Nov 2016 19:19:58 GMT
Giovanni Briggs created AIRFLOW-643:

             Summary: Improve coerce_to_timestamp for salesforce_hook
                 Key: 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

View raw message