You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Shuai Zheng <sz...@gmail.com> on 2015/04/24 23:24:27 UTC
[SQL][Feature] Access row by column name instead of index
Hi All,
I want to ask whether there is a plan to implement the feature to access the Row in sql by name? Currently we can only allow to access a row by index (there is a python version api of access by name, but none for java)
Regards,
Shuai
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
For additional commands, e-mail: dev-help@spark.apache.org
RE: [SQL][Feature] Access row by column name instead of index
Posted by Shuai Zheng <sz...@gmail.com>.
Hi,
I add a few helper method on this, to make java developer life easier, because we can’t benefit from the generic feature on getAs[T].
Please let me know if I should not do that.
Regards,
Shuai
From: Michael Armbrust [mailto:michael@databricks.com]
Sent: Friday, April 24, 2015 5:57 PM
To: Reynold Xin
Cc: Shuai Zheng; dev
Subject: Re: [SQL][Feature] Access row by column name instead of index
Already done :)
https://github.com/apache/spark/commit/2e8c6ca47df14681c1110f0736234ce76a3eca9b
On Fri, Apr 24, 2015 at 2:37 PM, Reynold Xin <rx...@databricks.com> wrote:
Can you elaborate what you mean by that? (what's already available in
Python?)
On Fri, Apr 24, 2015 at 2:24 PM, Shuai Zheng <sz...@gmail.com> wrote:
> Hi All,
>
> I want to ask whether there is a plan to implement the feature to access
> the Row in sql by name? Currently we can only allow to access a row by
> index (there is a python version api of access by name, but none for java)
>
> Regards,
>
> Shuai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
> For additional commands, e-mail: dev-help@spark.apache.org
>
>
RE: [SQL][Feature] Access row by column name instead of index
Posted by Shuai Zheng <sz...@gmail.com>.
Great,
That is exactly what I want. Now I will wait patiently for 1.4.0 J
Regards,
Shuai
From: Michael Armbrust [mailto:michael@databricks.com]
Sent: Friday, April 24, 2015 5:57 PM
To: Reynold Xin
Cc: Shuai Zheng; dev
Subject: Re: [SQL][Feature] Access row by column name instead of index
Already done :)
https://github.com/apache/spark/commit/2e8c6ca47df14681c1110f0736234ce76a3eca9b
On Fri, Apr 24, 2015 at 2:37 PM, Reynold Xin <rx...@databricks.com> wrote:
Can you elaborate what you mean by that? (what's already available in
Python?)
On Fri, Apr 24, 2015 at 2:24 PM, Shuai Zheng <sz...@gmail.com> wrote:
> Hi All,
>
> I want to ask whether there is a plan to implement the feature to access
> the Row in sql by name? Currently we can only allow to access a row by
> index (there is a python version api of access by name, but none for java)
>
> Regards,
>
> Shuai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
> For additional commands, e-mail: dev-help@spark.apache.org
>
>
Re: [SQL][Feature] Access row by column name instead of index
Posted by Michael Armbrust <mi...@databricks.com>.
Already done :)
https://github.com/apache/spark/commit/2e8c6ca47df14681c1110f0736234ce76a3eca9b
On Fri, Apr 24, 2015 at 2:37 PM, Reynold Xin <rx...@databricks.com> wrote:
> Can you elaborate what you mean by that? (what's already available in
> Python?)
>
>
> On Fri, Apr 24, 2015 at 2:24 PM, Shuai Zheng <sz...@gmail.com>
> wrote:
>
> > Hi All,
> >
> > I want to ask whether there is a plan to implement the feature to access
> > the Row in sql by name? Currently we can only allow to access a row by
> > index (there is a python version api of access by name, but none for
> java)
> >
> > Regards,
> >
> > Shuai
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
> > For additional commands, e-mail: dev-help@spark.apache.org
> >
> >
>
Re: [SQL][Feature] Access row by column name instead of index
Posted by Reynold Xin <rx...@databricks.com>.
Can you elaborate what you mean by that? (what's already available in
Python?)
On Fri, Apr 24, 2015 at 2:24 PM, Shuai Zheng <sz...@gmail.com> wrote:
> Hi All,
>
> I want to ask whether there is a plan to implement the feature to access
> the Row in sql by name? Currently we can only allow to access a row by
> index (there is a python version api of access by name, but none for java)
>
> Regards,
>
> Shuai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@spark.apache.org
> For additional commands, e-mail: dev-help@spark.apache.org
>
>