br1ghtyang / asterixdb

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

Last example in Similarity Query doc is broken #536

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
THIS IS AN EXAMPLE FROM THE SIMILARITY QUERY DOC:

    use dataverse TinySocial;

    create index fbUserIdx_fids on FacebookUsers(friend-ids) type keyword;

    for $c in dataset('FacebookUsers')
    let $jacc := similarity-jaccard-check($c.friend-ids, {{3,10}}, 0.5f)
    where $jacc[0]
    return $c

THIS IS WHAT IT DOES IN THE BETA - IT THROWS AN ERROR:

    Only ordered lists and string types supported. [AlgebricksException]

WHAT NEEDS TO HAPPEN:

    The example needs to be replaced with one that works.  :)

(I came across this when playing with the Beta and the docs today.)

Original issue reported on code.google.com by dtab...@gmail.com on 19 Jun 2013 at 11:17

GoogleCodeExporter commented 8 years ago
I thought Ji Mahn has tried the queries before.  @Ji Mahn: can you look into it 
after you come back?

Original comment by che...@gmail.com on 20 Jun 2013 at 5:01

GoogleCodeExporter commented 8 years ago
I just tried the query and got the same error:

edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException: 
edu.uci.ics.hyracks.algebricks.common.exceptions.AlgebricksException: Only 
ordered lists and string types supported.

@Inci: is it related to the fix you did related to jaccard similarity function? 
 If not, we will wait until Ji Mahn comes back on Friday.

Original comment by che...@gmail.com on 20 Jun 2013 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by che...@gmail.com on 21 Jun 2013 at 10:27

GoogleCodeExporter commented 8 years ago
This issue is fixed in branch "jimahn/master_issue536" and the branch is merged 
to master after having code review from Inci. 

Original comment by jimah...@gmail.com on 3 Jul 2013 at 12:24