I originally tried to stitch different ones myself in unit tests, later I've found writing a JSON string much easier to follow and tune.
I don't see why you couldn't write it in programmatically though, I think it just takes more time. Tim On Wed, Feb 13, 2013 at 11:02 PM, Julian Hyde <[email protected]> wrote: > I'm working on https://issues.apache.org/jira/browse/DRILL-34, and trying > to build a logical plan. I'm trying to instantiate the various JSON classes > (LogicalPlan, Scan, Write etc.) and then call > ObjectMapper.writeValueAsString passing in the LogicalPlan. But I'm running > into what look like consistency errors. > > It looks like my code is the first to try to build a plan programmatically > (as opposed to by parsing a string). Should I just generate a JSON string > instead? > > Julian > >
