Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/1118#discussion_r13950516
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/hiveOperators.scala
---
@@ -445,7 +445,19 @@ case class NativeCommand(
if (sideEffectResult.size == 0) {
context.emptyResult
} else {
- val rows = sideEffectResult.map(r => new GenericRow(Array[Any](r)))
+ // TODO: Need a better way to handle the result of a native command.
+ // We may want to consider to use JsonMetaDataFormatter in Hive.
--- End diff --
Ah, my bad, when saying "just refer to `NativeCommand`", I actually meant
to add a `DescribeCommand` following `NativeCommand` in `hiveOperations.scala`.
Actually, as briefly mentioned at the end of section [PR
Overview](https://github.com/apache/spark/pull/1071#issue-35616519) of PR #1071
description, we should specialize all native commands in the same way, and use
`NativeCommand` as a default handler for those commands that haven't been
specialized yet.
---
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.
---