public static boolean isFullAcidTable(CreateTableDesc td) { if (td == null || td.getTblProps() == null) { return false; } String tableIsTransactional = td.getTblProps().get(hive_metastoreConstants.TABLE_IS_TRANSACTIONAL); if (tableIsTransactional == null) { tableIsTransactional = td.getTblProps().get(hive_metastoreConstants.TABLE_IS_TRANSACTIONAL.toUpperCase()); } return tableIsTransactional != null && tableIsTransactional.equalsIgnoreCase("true") && !AcidUtils.isInsertOnlyTable(td.getTblProps()); }
public static boolean isTransactionalTable(CreateTableDesc table) { if (table == null || table.getTblProps() == null) { return false; } return isTransactionalTable(table.getTblProps()); }
public Map<String, String> getTblProps() { switch (getDescType()) { case TABLE: return createTblDesc.getTblProps(); case VIEW: return createViewDesc.getTblProps(); } return null; }
public Map<String, String> getTblProps() { switch (getTableType()) { case TABLE: return createTblDesc.getTblProps(); case VIEW: return createViewDesc.getTblProps(); } return null; }
directoryDesc.getNullFormat()); if (directoryDesc.getTblProps() != null) { properties.putAll(directoryDesc.getTblProps());
directoryDesc.getNullFormat()); if (directoryDesc.getTblProps() != null) { properties.putAll(directoryDesc.getTblProps());
Map<String, String> tblProps = desc.getTblProps(); if (tblProps == null) {
} else if (parseCtx.getCreateTable() != null) { segmentGranularity = parseCtx.getCreateTable().getTblProps() .get(Constants.DRUID_SEGMENT_GRANULARITY); targetShardsProperty = parseCtx.getCreateTable().getTblProps() .getOrDefault(Constants.DRUID_TARGET_SHARDS_PER_GRANULARITY, "0"); } else {
} else { segmentGranularity = parseCtx.getCreateTable().getTblProps() .get(Constants.DRUID_SEGMENT_GRANULARITY);
if (crtTblDesc.getTblProps() != null) { properties.putAll(crtTblDesc.getTblProps());
if (crtTblDesc.getTblProps() != null) { properties.putAll(crtTblDesc.getTblProps());
if (getTblProps() != null) { tbl.getTTable().getParameters().putAll(getTblProps());
if (getTblProps() != null) { tbl.getTTable().getParameters().putAll(getTblProps());
if (tblDesc != null && tblDesc.isTemporary() && AcidUtils.isInsertOnlyTable(tblDesc.getTblProps(), true)) { fname = FileUtils.makeQualified(location, conf).toString(); } else {
destTableIsTemporary = tblDesc.isTemporary(); destTableIsMaterialization = tblDesc.isMaterialization(); if (AcidUtils.isInsertOnlyTable(tblDesc.getTblProps(), true)) { isMmTable = isMmCtas = true; try {
public void setTimePartCols(List<String> timePartCols) { this.timePartCols = timePartCols; if (super.getTblProps() == null) { super.setTblProps(new HashMap<String, String>()); } super.getTblProps().put(MetastoreConstants.TIME_PART_COLUMNS, StringUtils.join(this.timePartCols, ',')); }
public void setTimePartCols(List<String> timePartCols) { this.timePartCols = timePartCols; if (super.getTblProps() == null) { super.setTblProps(new HashMap<String, String>()); } super.getTblProps().put(MetastoreConstants.TIME_PART_COLUMNS, StringUtils.join(this.timePartCols, ',')); }
directoryDesc.getNullFormat()); if (directoryDesc.getTblProps() != null) { properties.putAll(directoryDesc.getTblProps());
if (crtTblDesc.getTblProps() != null) { properties.putAll(crtTblDesc.getTblProps());
Map<String, String> tblProps = desc.getTblProps(); if (tblProps == null) {