I was hoping to see the source code for date_trunc function in Databricks. The pyspark source code does not answer my question. basically I want to know what is happening at the very core; e.g. does it run a regexp pattern/method or does it have its own algorithm?
Can anyone help? Thank you!