You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2026/06/02 19:19:08 UTC
[PR] feat(sedonadb/python): Add informative error for len() of a DataFrame [sedona-db]
paleolimbot opened a new pull request, #902:
URL: https://github.com/apache/sedona-db/pull/902
Adds an implementation of __len__ that errors and informs the user of how to get a row count.
```python
import sedona.db
sd = sedona.db.connect()
len(sd.sql("SELECT 1 as one"))
#> ValueError: Can't compute len() of a lazy SedonaDB DataFrame. Use .count() to execute and resolve the number of rows.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(sedonadb/python): Add informative error for len() of a DataFrame [sedona-db]
Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot merged PR #902:
URL: https://github.com/apache/sedona-db/pull/902
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(sedonadb/python): Add informative error for len() of a DataFrame [sedona-db]
Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on PR #902:
URL: https://github.com/apache/sedona-db/pull/902#issuecomment-4606631407
@prantogg I know we've been terrible about honouring reviewer requests here, but this one is a good one for you 🙂
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org