ntjohnson1 commented on issue #1300: URL: https://github.com/apache/datafusion-python/issues/1300#issuecomment-3522610618
Hmm on 50.1 this seems just generally broken or the [example in the docs](https://datafusion.apache.org/python/autoapi/datafusion/functions/index.html#datafusion.functions.last_value) is wrong ```python ctx = dfn.SessionContext() df = ctx.from_pydict( { "a": [0, 1, 2, 3, 4], "b": [0, 1, 2, 3, 4] } ) df.select(F.last_value(col("a"), order_by="b")).collect() ``` ```console Exception: DataFusion error: NotImplemented("Physical plan does not support logical expression AggregateFunction(AggregateFunction { func: AggregateUDF { inner: LastValue { name: \"last_value\", signature: Signature { type_signature: Any(1), volatility: Immutable }, accumulator: \"<FUNC>\" } }, params: AggregateFunctionParams { args: [Column(Column { relation: Some(Bare { table: \"cfca6f9a4517040a69c659bb43f2a9617\" }), name: \"a\" })], distinct: false, filter: None, order_by: [Sort { expr: Column(Column { relation: Some(Bare { table: \"cfca6f9a4517040a69c659bb43f2a9617\" }), name: \"b\" }), asc: true, nulls_first: true }], null_treatment: Some(RespectNulls) } })") ``` -- 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]
