private boolean containsVds(QueryProfile profile, String vdsSql) { return profile.getDatasetProfileList().stream().anyMatch(dp -> dp.getType() == VDS && dp.getSql().equals(vdsSql)); }
private boolean containsPds(QueryProfile profile, BatchSchema schema) { return profile.getDatasetProfileList().stream().anyMatch(dp -> dp.getType() == PDS && schema.equals(BatchSchema.deserialize(dp.getBatchSchema().toByteArray()))); }
if(message.hasNonDefaultOptionsJSON()) output.writeString(29, message.getNonDefaultOptionsJSON(), false); for(com.dremio.exec.proto.UserBitShared.DatasetProfile datasetProfile : message.getDatasetProfileList()) output.writeObject(30, datasetProfile, com.dremio.exec.proto.SchemaUserBitShared.DatasetProfile.WRITE, true);