Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,9 @@ public Iterator<String> call(Tuple2<Long, FrameBlock> arg0)
//handle header information and frame meta data
if( ix==1 ) {
if( _props.hasHeader() ) {
for(int j = 1; j <= blk.getNumColumns(); j++) {
sb.append(blk.getColumnNames()[j]
+ ((j<blk.getNumColumns()-1)?_props.getDelim():""));
for(int j = 0; j < blk.getNumColumns(); j++) {
sb.append(blk.getColumnNames()[j])
.append(j < blk.getNumColumns() - 1 ? _props.getDelim() : "");
}
ret.add(sb.toString());
sb.setLength(0); //reset
Expand Down