TableDesc tableDesc = metaMgr.getTableDesc(tableName, project); if (tableDesc != null) { projectCache.tables.put(tableDesc.getIdentity(), new TableCache(tableDesc)); } else { logger.warn("Table '" + tableName + "' defined under project '" + project + "' is not found");
TableDesc tableDesc = metaMgr.getTableDesc(tableName, project); if (tableDesc != null) { projectCache.tables.put(tableDesc.getIdentity(), new TableCache(tableDesc)); } else { logger.warn("Table '" + tableName + "' defined under project '" + project + "' is not found");
TableDesc tableDesc = metaMgr.getTableDesc(tableName); if (tableDesc != null) { result.tables.put(tableDesc.getIdentity(), new TableCache(tableDesc)); } else { logger.warn("Table '" + tableName + "' defined under project '" + project + "' is not found");
prjCache.tables.put(table.getIdentity(), new TableCache(table)); logger.warn("Realization '" + realization.getCanonicalName() + "' reports column '" + col.getCanonicalName() + "' whose table is not defined in project '" + prjCache.project + "'");
private boolean sanityCheck(ProjectCache prjCache, IRealization realization) { MetadataManager metaMgr = mgr.getMetadataManager(); List<TblColRef> allColumns = realization.getAllColumns(); if (allColumns == null || allColumns.isEmpty()) { logger.error("Realization '" + realization.getCanonicalName() + "' does not report any columns"); return false; } for (TblColRef col : allColumns) { TableDesc table = metaMgr.getTableDesc(col.getTable()); if (table == null) { logger.error("Realization '" + realization.getCanonicalName() + "' reports column '" + col.getCanonicalName() + "', but its table is not found by MetadataManager"); return false; } ColumnDesc foundCol = table.findColumnByName(col.getName()); if (col.getColumn().equals(foundCol) == false) { logger.error("Realization '" + realization.getCanonicalName() + "' reports column '" + col.getCanonicalName() + "', but it is not equal to '" + foundCol + "' according to MetadataManager"); return false; } // auto-define table required by realization for some legacy test case if (prjCache.tables.get(table.getIdentity()) == null) { prjCache.tables.put(table.getIdentity(), new TableCache(table)); logger.warn("Realization '" + realization.getCanonicalName() + "' reports column '" + col.getCanonicalName() + "' whose table is not defined in project '" + prjCache.project + "'"); } } return true; }
TableDesc tableDesc = metaMgr.getTableDesc(tableName); if (tableDesc != null) { result.tables.put(tableDesc.getIdentity(), new TableCache(tableDesc)); } else { logger.warn("Table '" + tableName + "' defined under project '" + project + "' is not found");
private boolean sanityCheck(ProjectCache prjCache, IRealization realization) { MetadataManager metaMgr = mgr.getMetadataManager(); List<TblColRef> allColumns = realization.getAllColumns(); if (allColumns == null || allColumns.isEmpty()) { logger.error("Realization '" + realization.getCanonicalName() + "' does not report any columns"); return false; } for (TblColRef col : allColumns) { TableDesc table = metaMgr.getTableDesc(col.getTable()); if (table == null) { logger.error("Realization '" + realization.getCanonicalName() + "' reports column '" + col.getCanonicalName() + "', but its table is not found by MetadataManager"); return false; } ColumnDesc foundCol = table.findColumnByName(col.getName()); if (col.getColumn().equals(foundCol) == false) { logger.error("Realization '" + realization.getCanonicalName() + "' reports column '" + col.getCanonicalName() + "', but it is not equal to '" + foundCol + "' according to MetadataManager"); return false; } // auto-define table required by realization for some legacy test case if (prjCache.tables.get(table.getIdentity()) == null) { prjCache.tables.put(table.getIdentity(), new TableCache(table)); logger.warn("Realization '" + realization.getCanonicalName() + "' reports columcn '" + col.getCanonicalName() + "' whose table is not defined in project '" + prjCache.project + "'"); } } return true; }
prjCache.tables.put(table.getIdentity(), new TableCache(table)); logger.warn("Realization '" + realization.getCanonicalName() + "' reports column '" + col.getCanonicalName() + "' whose table is not defined in project '" + prjCache.project + "'");