private boolean recordHeader(OutputStream output, JobId id, User user, String submissionId) throws UserNotFoundException, IOException, JobNotFoundException { SupportHeader header = new SupportHeader(); header.setClusterInfo(getClusterInfo()); header.setJob(jobsService.get().getJob(id).getJobAttempt()); Submission submission = new Submission() .setSubmissionId(submissionId) .setDate(System.currentTimeMillis()) .setEmail(user.getEmail()) .setFirst(user.getFirstName()) .setLast(user.getLastName()); header.setSubmission(submission); // record the dremio version that was used to run the query in the header header.setDremioVersion(jobsService.get().getProfile(id, 0).getDremioVersion()); ProtostuffUtil.toJSON(output, header, SupportHeader.getSchema(), false); return true; }
output.writeString(32, message.getDremioVersion(), false); if(message.hasOperatorTypeMetricsMap()) output.writeObject(33, message.getOperatorTypeMetricsMap(), com.dremio.exec.proto.SchemaUserBitShared.CoreOperatorTypeMetricsMap.WRITE, false);
/** * <code>optional string dremio_version = 32;</code> */ public Builder clearDremioVersion() { bitField0_ = (bitField0_ & ~0x08000000); dremioVersion_ = getDefaultInstance().getDremioVersion(); onChanged(); return this; } /**