Skip to content

Commit

Permalink
Update spec.md, rename partition transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
clettieri authored Jul 31, 2023
1 parent 84e526f commit 433c8bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions format/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ Partition specs capture the transform from table data to partition values. This
| **`identity`** | Source value, unmodified | Any | Source type |
| **`bucket[N]`** | Hash of value, mod `N` (see below) | `int`, `long`, `decimal`, `date`, `time`, `timestamp`, `timestamptz`, `string`, `uuid`, `fixed`, `binary` | `int` |
| **`truncate[W]`** | Value truncated to width `W` (see below) | `int`, `long`, `decimal`, `string` | Source type |
| **`year`** | Extract a date or timestamp year, as years from 1970 | `date`, `timestamp`, `timestamptz` | `int` |
| **`month`** | Extract a date or timestamp month, as months from 1970-01-01 | `date`, `timestamp`, `timestamptz` | `int` |
| **`day`** | Extract a date or timestamp day, as days from 1970-01-01 | `date`, `timestamp`, `timestamptz` | `int` |
| **`hour`** | Extract a timestamp hour, as hours from 1970-01-01 00:00:00 | `timestamp`, `timestamptz` | `int` |
| **`years`** | Extract a date or timestamp year, as years from 1970 | `date`, `timestamp`, `timestamptz` | `int` |
| **`months`** | Extract a date or timestamp month, as months from 1970-01-01 | `date`, `timestamp`, `timestamptz` | `int` |
| **`days`** | Extract a date or timestamp day, as days from 1970-01-01 | `date`, `timestamp`, `timestamptz` | `int` |
| **`hours`** | Extract a timestamp hour, as hours from 1970-01-01 00:00:00 | `timestamp`, `timestamptz` | `int` |
| **`void`** | Always produces `null` | Any | Source type or `int` |

All transforms must return `null` for a `null` input value.
Expand Down

0 comments on commit 433c8bf

Please sign in to comment.