Julian, you're definitely the first to do it.  The only place where I know
things are a little awkward is the storage engine to operator stichting
occurs.  The fact that everything is final is also a bit challenging
depending on how you're building things.  I'd like to make it cleaner to
ease your pain.  Where else were you having problems?

Also, I need to push some updates I've done so that the syntax of the plan
matches that of the spec.

J

On Wed, Feb 13, 2013 at 11:27 PM, Timothy Chen <tnac...@gmail.com> wrote:

> 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 <julianh...@gmail.com>
> 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
> >
> >
>

Reply via email to