br1ghtyang / asterixdb

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

Raised-to-the-power operator broken in AQL #473

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Type the expression 3 ^ 2 into the query box in the web UI and hit "Execute".

What is the expected output? What do you see instead?

The expected output is 9, since the AQL grammar claims support for the 
raised-to-the-power operator as one of its arithmetic operators.
The actual output is a null pointer exception (oops)!

(If it's a problem to fix this quickly, it could be dropped from the 
documentation and rebranded an enhancement request, if need be.  Otherwise, 
yielding an NPE makes it a beta blocker.)

Original issue reported on code.google.com by dtab...@gmail.com on 26 May 2013 at 4:16

GoogleCodeExporter commented 8 years ago
Seems that the caret function has not been implemented yet. The function lookup 
returns a null when it tries to find the proper evaluator. I will add this. And 
this is definitely a beta-blocker.

Original comment by jarod...@gmail.com on 26 May 2013 at 5:06

GoogleCodeExporter commented 8 years ago
The fix has been applied to branch jarodwen/hotfix/issue473 for reviewing.

Original comment by jarod...@gmail.com on 26 May 2013 at 5:37

GoogleCodeExporter commented 8 years ago
That was quick; thanks!!

Original comment by dtab...@gmail.com on 26 May 2013 at 4:32

GoogleCodeExporter commented 8 years ago
reviewed, good to be merged back.

Original comment by RamanGro...@gmail.com on 31 May 2013 at 12:32

GoogleCodeExporter commented 8 years ago
Thanks Raman. 

The code change has been merged back to master.

Original comment by jarod...@gmail.com on 31 May 2013 at 2:18