This should do it:

  builder.peek().getRowType().getFieldNames()

> On Mar 25, 2019, at 11:52 PM, Rakesh Nair <[email protected]> wrote:
> 
> Hi,
> I would like to know whether there's any way to *get the column names of
> the table once it has been scanned*.
> 
> 
> *RelBuilder builder = RelBuilder.create(config);*
> 
> *builder.scan("emp");*
> *List<RexNode> ls = builder.fields();*
> 
> I've tried the *builder.fields() method*, but the return object is
> containing names like $0, $1 etc..
> 
> Is there any way, I can actually get the column names itself from the
> builder?
> 
> Regards,
> Rakesh

Reply via email to