25 const vector<ExprContext*>& output_expr_ctxs)
29 table_desc_(table_desc),
30 output_expr_ctxs_(output_expr_ctxs) {
31 int num_non_partition_cols =
42 msg <<
"Failed to write data (length: " << len
48 stats_.bytes_written += len;
HdfsTableSink * parent_
Parent table sink object.
std::string current_file_name
Status Write(const char *data, int32_t len)
Write to the current hdfs file.
const HdfsTableDescriptor * table_desc_
Table descriptor of table to be written.
#define COUNTER_ADD(c, v)
std::string DebugString() const
HdfsTableWriter(HdfsTableSink *parent, RuntimeState *state, OutputPartition *output_partition, const HdfsPartitionDescriptor *partition_desc, const HdfsTableDescriptor *table_desc, const std::vector< ExprContext * > &output_expr_ctxs)
hdfsFS hdfs_connection
Connection to hdfs.
int num_clustering_cols() const
RuntimeProfile::Counter * bytes_written_counter()
hdfsFile tmp_hdfs_file
Hdfs file at tmp_hdfs_file_name.
std::vector< ExprContext * > output_expr_ctxs_
Expressions that materialize output values.
TInsertStats stats_
Subclass should populate any file format specific stats.
Metadata for a single partition inside an Hdfs table.
string GetHdfsErrorMsg(const string &prefix, const string &file)
OutputPartition * output_
Structure describing partition written to by this writer.