patmok / unparse

unparse parse tree for kdb+/q
17 stars 2 forks source link

select vs. exec #1

Closed fjaifi closed 9 years ago

fjaifi commented 9 years ago

"select avg f1 by f2 from t" maps to "exec f1:avg f1 by f2:f2 from t" Interestingly, they match in terms of their parse trees and execution output

patmok commented 9 years ago

since exec is the general case it currently returns exec when it can't determine what expression generated the input parse tree, unfortunately i don't think there is a way around this?

ps: i just updated it a bit to handle : better, check it out!