honeyAndSw commented on PR #970:
URL:
https://github.com/apache/datafusion-ballista/pull/970#issuecomment-2124984820
Hi @andygrove, after this change, the datafusion functions submodule seems
not included in PyBallista.
If I try to find `functions` within PyBallista
```
from pyballista import SessionContext, functions as f
filename = "sample.parquet"
ctx = SessionContext("localhost", 50050)
df = ctx.read_parquet(path=filename)
uri = df.select(f.col("stream_id"))
df.limit(10).show()
```
I'm getting the following error:
```
ImportError: cannot import name 'functions' from 'pyballista'
(/Users/.../datafusion-ballista/python/pyballista/__init__.py)
```
Or if I change my imports to:
```
from pyballista import SessionContext
from datafusion import functions as f
```
Then it says:
```
File "examples/test.py", line 11, in <module>
uri = df.select(f.col("stream_id"))
TypeError: argument 'args': 'Expr' object cannot be converted to 'Expr'
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]