Skip to content

Commit

Permalink
reword motivation for defining noops schema
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jan 20, 2024
1 parent b935be3 commit 0277882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/noop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0277882

Please sign in to comment.