private static WriterProperties CreateWriterProperties(ExpectedColumn[] expectedColumns, bool useDictionaryEncoding)
        {
            var builder = new WriterPropertiesBuilder();

            builder.Compression(Compression.Lz4);

            if (!useDictionaryEncoding)
            {
                foreach (var column in expectedColumns)
                {
                    builder.DisableDictionary(column.Name);
                }
            }

            return(builder.Build());
        }
 private static WriterProperties CreateWriterProperties(bool enableDictionary)
 {
     using var builder = new WriterPropertiesBuilder();
     builder.Compression(Compression.Snappy);
     return((enableDictionary ? builder : builder.DisableDictionary("value")).Build());
 }