Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/17997
  
    The current impl is still missing the special handling of that miracle 
period. See the outputs of Oracle:
    ```
    Result Set 34
    TO_CHAR(TO_DATE('1582-10-04','YYYY-MM-DD'),'DDD')
    277
    
    Result Set 35
    TO_CHAR(TO_DATE('1582-10-05','YYYY-MM-DD'),'DDD')
    288
    
    Result Set 36
    TO_CHAR(TO_DATE('1582-10-11','YYYY-MM-DD'),'DDD')
    288
    
    Result Set 37
    TO_CHAR(TO_DATE('1582-10-12','YYYY-MM-DD'),'DDD')
    288
    
    Result Set 38
    TO_CHAR(TO_DATE('1582-10-13','YYYY-MM-DD'),'DDD')
    288
    
    Result Set 39
    TO_CHAR(TO_DATE('1582-10-14','YYYY-MM-DD'),'DDD')
    288
    
    Result Set 40
    TO_CHAR(TO_DATE('1582-10-15','YYYY-MM-DD'),'DDD')
    288
    
    Result Set 41
    TO_CHAR(TO_DATE('1582-10-16','YYYY-MM-DD'),'DDD')
    289
    ```



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to