From 027788208d46f98862f7176db31541d6f5d45f72 Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Sat, 20 Jan 2024 18:45:40 +0000 Subject: [PATCH] reword motivation for defining noops schema --- docs/noop.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/noop.md b/docs/noop.md index 459c6b6..2a5c85a 100644 --- a/docs/noop.md +++ b/docs/noop.md @@ -146,9 +146,9 @@ We'll need to make two files: ### Defining `noop`'s schema -This only affects lazy execution. If you only ever intend to use your plugin -in eager mode, then you might not care about it, but this a tutorial, so -let's take care to get it right. +Polars needs to know the schema/dtypes resulting from operations to make good +optimization decisions. The way we tell Polars what to expect from our custom +function is with the `polars_expr` attribute. Our beautiful `noop` doesn't change the data type (in fact, it doesn't change anything...) so we'll just write a function which returns the same input type: