Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/4096#issuecomment-70537386
  
    @MechCoder This changes the construction time from O(1) to O(nnz), which 
could be thousands. We use many conversions from/to breeze. Adding this check 
would be too expensive. One option is to use the factory method with `entries`, 
or we can add another factory method: `sparse(size, indices, values, validate: 
Boolean)` if people feel unsafe without validation. But checking it every time 
would be too expensive.


---
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]

Reply via email to