[Checkins] SVN: Sandbox/adamg/ocql/trunk/src/ocql/compiler/compiler_optimized.txt fixing result order

Adam Groszer agroszer at gmail.com
Tue Aug 19 03:36:19 EDT 2008


Log message for revision 89994:
  fixing result order

Changed:
  U   Sandbox/adamg/ocql/trunk/src/ocql/compiler/compiler_optimized.txt

-=-
Modified: Sandbox/adamg/ocql/trunk/src/ocql/compiler/compiler_optimized.txt
===================================================================
--- Sandbox/adamg/ocql/trunk/src/ocql/compiler/compiler_optimized.txt	2008-08-19 05:50:10 UTC (rev 89993)
+++ Sandbox/adamg/ocql/trunk/src/ocql/compiler/compiler_optimized.txt	2008-08-19 07:36:19 UTC (rev 89994)
@@ -9,7 +9,7 @@
     >>> setupCatalog(None)
 
 We'll use the same queries as in aoptimizer.txt.
-Algebra trees get omitted as they are already tested over there.
+Algebra trees get omitted as they are already checked over there.
 
 Let's use the IUnOptimizedClass:
 --------------------------------
@@ -24,8 +24,8 @@
     RunnableQuery: reduce(set.union, map(lambda i: set([i]), set(metadata.getAll("IUnOptimizedClass"))), set())
 
     >>> result = run.execute()
-    >>> sorted(list(result))
-    [UnOpt: 0, UnOpt: 2, UnOpt: 1, UnOpt: 4, UnOpt: 3, UnOpt: 6, UnOpt: 5, UnOpt: 7, UnOpt: 8, UnOpt: 9]
+    >>> sorted(list(result), key=lambda x:x.value)
+    [UnOpt: 0, UnOpt: 1, UnOpt: 2, UnOpt: 3, UnOpt: 4, UnOpt: 5, UnOpt: 6, UnOpt: 7, UnOpt: 8, UnOpt: 9]
     >>> type(result)
     <type 'set'>
 



More information about the Checkins mailing list