You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:04:25 UTC

[jira] [Updated] (SPARK-23511) Catalyst: Implement GetField

     [ https://issues.apache.org/jira/browse/SPARK-23511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-23511:
---------------------------------
    Labels: bulk-closed  (was: )

> Catalyst: Implement GetField
> ----------------------------
>
>                 Key: SPARK-23511
>                 URL: https://issues.apache.org/jira/browse/SPARK-23511
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.2.1
>            Reporter: Nadav Samet
>            Priority: Major
>              Labels: bulk-closed
>
> Similar to Invoke, InvokeStatic and NewInstance, it would be nice to have GetStaticField(expression, fieldName).
> My use case is invoking a method on a companion object given the class of the companion object itself - it turns out they are not static. I'd like to be able to do something like this:
> Invoke(GetStaticField(cls, "MODULE$", ...), "someMethod", ...)
> My workaround is passing the companion to Invoke() directly to Literal.fromObject but I think having a general solution to call method on companion objects would be better.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org