diff options
author | Reynold Xin <rxin@databricks.com> | 2015-07-19 01:17:22 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-07-19 01:17:22 -0700 |
commit | 3427937ea2a4ed19142bd3d66707864879417d61 (patch) | |
tree | 3713bf77e9894e73c2b436f9f79ccf29eabb9713 /dev | |
parent | a53d13f7aa5d44c706e5510f57399a32c7558b80 (diff) | |
download | spark-3427937ea2a4ed19142bd3d66707864879417d61.tar.gz spark-3427937ea2a4ed19142bd3d66707864879417d61.tar.bz2 spark-3427937ea2a4ed19142bd3d66707864879417d61.zip |
[SQL] Make date/time functions more consistent with other database systems.
This pull request fixes some of the problems in #6981.
- Added date functions to `__all__` so they get exposed
- Rename day_of_month -> dayofmonth
- Rename day_in_year -> dayofyear
- Rename week_of_year -> weekofyear
- Removed "day" from Scala/Python API since it is ambiguous. Only leaving the alias in SQL.
Author: Reynold Xin <rxin@databricks.com>
This patch had conflicts when merged, resolved by
Committer: Reynold Xin <rxin@databricks.com>
Closes #7506 from rxin/datetime and squashes the following commits:
0cb24d9 [Reynold Xin] Export all functions in Python.
e44a4a0 [Reynold Xin] Removed day function from Scala and Python.
9c08fdc [Reynold Xin] [SQL] Make date/time functions more consistent with other database systems.
Diffstat (limited to 'dev')
0 files changed, 0 insertions, 0 deletions