Support dense:thrift and sparse:thrift output formats