Github user ssimeonov commented on the pull request:
https://github.com/apache/spark/pull/7557#issuecomment-123526501
@marmbrus can you please provide a complete example that can execute in
`spark-shell`?
You can find a standalone runnable example with complete shell output in
[this gist](https://gist.github.com/ssimeonov/72c8a9b01f99e35ba470). Here is
the summary of what happens:
```scala
// ERROR RetryingHMSHandler:
MetaException(message:NoSuchObjectException(message:Function default.first does
not exist))
// INFO FunctionRegistry: Unable to lookup UDF in metastore:
org.apache.hadoop.hive.ql.metadata.HiveException:
MetaException(message:NoSuchObjectException(message:Function default.first does
not exist))
// java.lang.RuntimeException: Couldn't find function first
ctx.sql("select first(num) from test_first group by category").show
// OK
ctx.sql("select first_value(num) from test_first group by category").show
```
Perhaps the difference is that I'm using `HiveContext`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]