vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | use dataverse fuzzy1; |
| 2 | |
| 3 | declare type DBLPType as open { |
| 4 | id: int32, |
| 5 | dblpid: string, |
| 6 | title: string, |
| 7 | authors: string, |
| 8 | misc: string |
| 9 | } |
| 10 | |
| 11 | declare nodegroup group1 on nc1, nc2; |
| 12 | |
| 13 | declare dataset DBLP(DBLPType) |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame] | 14 | primary key id on group1; |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 15 | |
| 16 | write output to nc1:"/tmp/dblp.adm"; |
| 17 | |
| 18 | for $paperR in dataset('DBLP') |
| 19 | where $paperR.id = 1 |
| 20 | for $authorR in word-tokens($paperR.authors) |
| 21 | for $paperS in dataset('DBLP') |
| 22 | for $authorS in word-tokens($paperS.authors) |
| 23 | where $authorR = $authorS |
| 24 | return {'R': {'dblpid': $paperR.dblpid, 'authors': $paperR.authors}, |
| 25 | 'S': {'dblpid': $paperS.dblpid, 'authors': $paperS.authors}} |
| 26 | |
| 27 | /* |
| 28 | java.lang.RuntimeException: java.lang.IllegalArgumentException |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame^] | 29 | at org.apache.hyracks.control.nc.runtime.OperatorRunnable.run(OperatorRunnable.java:70) |
| 30 | at org.apache.hyracks.control.nc.Stagelet$1.run(Stagelet.java:120) |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 31 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) |
| 32 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) |
| 33 | at java.lang.Thread.run(Thread.java:619) |
| 34 | Caused by: java.lang.IllegalArgumentException |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame^] | 35 | at org.apache.hyracks.dataflow.common.data.util.StringUtils.charAt(StringUtils.java:62) |
| 36 | at org.apache.asterix.jobgen.data.tagged.AqlSchemalessPrinterFactory$1.print(AqlSchemalessPrinterFactory.java:103) |
| 37 | at org.apache.asterix.jobgen.data.tagged.AqlSchemalessPrinterFactory$1.print(AqlSchemalessPrinterFactory.java:112) |
| 38 | at org.apache.aqua.runtime.operators.std.PrinterRuntime.printTuple(PrinterRuntime.java:90) |
| 39 | at org.apache.aqua.runtime.operators.std.PrinterRuntime.nextFrame(PrinterRuntime.java:58) |
| 40 | at org.apache.aqua.runtime.operators.base.AquaMetaOperatorDescriptor$2.nextFrame(AquaMetaOperatorDescriptor.java:123) |
| 41 | at org.apache.hyracks.control.nc.runtime.OperatorRunnable.run(OperatorRunnable.java:62) |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 42 | ... 4 more |
| 43 | */ |