Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-36698: [Go][Parquet] Add a TimestampLogicalType creation function … (
#36699) …with more options This change introduces a more flexible creation function for TimestampLogicalType which will enable changes to all the flags provided by this type, but without requiring a lot of parameters. Following on from other great examples in arrow it uses the functional options pattern. ### Rationale for this change Add a `TimestampLogicalType` creation function with more options, in particular an option to set `fromConverted` as I can't see another way to set this private struct property after creation. ### What changes are included in this PR? This change introduces a more flexible creation function for `TimestampLogicalType` which will enable changes to all the flags provided by this type, but without requiring a lot of parameters. ### Are these changes tested? Yes I have updated one of the existing tests. ### Are there any user-facing changes? * Closes: #36698 Authored-by: Mark Wolfe <mark@wolfe.id.au> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
- Loading branch information