public static boolean isInsertInto(ParseContext parseCtx, FileSinkOperator fsOp) {
    return fsOp.getConf().getTableInfo().getTableName() != null;
  }
Returns true iff current query is an insert into for the given file sink

@param parseCtx
@param fsOp
@return
ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java