Github user sun-rui commented on the pull request:
https://github.com/apache/spark/pull/7419#issuecomment-131324275
@shivaram , as you pointed out, I come with a simpler fix. I realized that
simply creating an empty vector using vector() without mode is OK when there is
no row in columns. Because vector() creates a zero-length vector of type
"logical", and "logical" is of virutally lowest precedence in the R's type
hierarchy, so it is supposed that "logical" type won't affect later coercion in
operations on a data.frame of 0 row, for example, rbind().
---
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]