diff --git a/src/write.cpp b/src/write.cpp index 3f77cf5..938e9bd 100644 --- a/src/write.cpp +++ b/src/write.cpp @@ -1,4 +1,5 @@ #include +#define __STDC_FORMAT_MACROS 1 #include #include "lib/nanoparquet.h" diff --git a/tests/testthat/test-write-encodings.R b/tests/testthat/test-write-encodings.R index 47aacf4..78828d0 100644 --- a/tests/testthat/test-write-encodings.R +++ b/tests/testthat/test-write-encodings.R @@ -189,6 +189,11 @@ test_that("double -> INT96", { on.exit(unlink(tmp), add = TRUE) schema <- "INT96" + # TODO: fix tests + if (.Platform$OS.type == "windows" && getRversion() < "4.2.0") { + skip("Needs INT96 read w/o converting to time + } + do <- function(d) { test_write(d, schema) test_write(d, schema, "PLAIN")