vmware-archive / quickstep

Quickstep Project
Apache License 2.0
27 stars 13 forks source link

Adds EXTRACT function for extracting fields from DATETIME #132

Closed jianqiao closed 8 years ago

jianqiao commented 8 years ago

This PR adds parser and resolver support for the EXTRACT function.

Since the backend DateExtractOperation and DateExtractUncheckedOperator are already there. So the EXTRACT function feature is complete. SQL tests are also added.

zuyu commented 8 years ago

@jianqiao In the title, replace operator with function.

pateljm commented 8 years ago

LTGM. Merging. I see the Travis error, but that is my bad as the line is over 120 characters and I'll fix it next in a separate PR.

Thanks @jianqiao.