br1ghtyang / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

get-year/month/day/hour/minute/second/millisecond not work #525

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install the asterix-beta version
2. Open Asterix web interface
3. Paste the test cases from aql function web pages.

let $c1 := date("2010-10-30")
let $c2 := datetime("1987-11-19T23:49:23.938")
let $c3 := time("12:23:34.930+07:00")
let $c4 := duration("P3Y73M632DT49H743M3948.94S")

return {"year": get-year($c1), "month": get-month($c2), "day": get-day($c1), 
"hour": get-hour($c3), "min": get-minute($c4), "second": get-second($c2), "ms": 
get-millisecond($c4)}

What is the expected output? What do you see instead?
Expected:
{ "year": 2010, "month": 11, "day": 30, "hour": 5, "min": 28, "second": 23, 
"ms": 94 }

Reality:
 unknown function null.get-year@1 [AsterixException]

What version of the product are you using? On what operating system?
 0.8 on Ubuntu 12.04.2 LTS.
 Default Install configuration on single node.

Please provide any additional information below.

Original issue reported on code.google.com by jianfeng...@gmail.com on 9 Jun 2013 at 7:03

GoogleCodeExporter commented 8 years ago
The fix is added to branch jarodwen/doc/beta_sync now.

Original comment by jarod...@gmail.com on 9 Jun 2013 at 2:49

GoogleCodeExporter commented 8 years ago
Fixed and pushed back to documentation branch.

Original comment by jarod...@gmail.com on 11 Jun 2013 at 4:34