br1ghtyang / asterixdb

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

"string-equal" function failed #512

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the following aql (a sample on Asterix Functions Document)
use dataverse TinySocial;

let $i := "Android"
return {"Equal": string-equal($i, "Android"), "NotEqual": string-equal($i, 
"iphone")}

What is the expected output? What do you see instead?
 expected:
  { "Equal": true, "NotEqual": false }

 What I got:
  unknown function TinySocial.string-equal@2 [AsterixException]

What version of the product are you using? On what operating system?
 fa6bac675d53c15276d2027e4772f0513436c1c3
 Mac OS X

I assigned this issue to Jarod. If he is not a right person, please re-assign 
this issue to the right person.

Original issue reported on code.google.com by jimah...@gmail.com on 6 Jun 2013 at 3:58

GoogleCodeExporter commented 8 years ago
CCing Raman.

Original comment by jimah...@gmail.com on 6 Jun 2013 at 4:05

GoogleCodeExporter commented 8 years ago
This is a private function.
Use the = operator instead.
(All the syntactic operators are backed by private functions.)

The correct test case would be:

let $i := "Android"
return {"Equal": ($i = "Android"), "NotEqual": ($i = "iphone")}

Original comment by dtab...@gmail.com on 6 Jun 2013 at 4:18