public static String[] getColumnsHeader(List<ColumnStatisticsObj> colStats) { boolean showColStats = false; if (colStats != null) { showColStats = true; } return DescTableDesc.getSchema(showColStats).split("#")[0].split(","); }
public static String[] getColumnsHeader(List<ColumnStatisticsObj> colStats) { boolean showColStats = false; if (colStats != null) { showColStats = true; } return DescTableDesc.getSchema(showColStats).split("#")[0].split(","); }
descTblDesc)); rootTasks.add(ddlTask); String schema = DescTableDesc.getSchema(showColStats); setFetchTask(createFetchTask(schema)); LOG.info("analyzeDescribeTable done");
descTblDesc), conf); rootTasks.add(ddlTask); String schema = DescTableDesc.getSchema(showColStats); setFetchTask(createFetchTask(schema)); LOG.info("analyzeDescribeTable done");
public static String[] getColumnsHeader(List<ColumnStatisticsObj> colStats) { boolean showColStats = false; if (colStats != null) { showColStats = true; } return DescTableDesc.getSchema(showColStats).split("#")[0].split(","); }
public static String[] getColumnsHeader() { return DescTableDesc.getSchema().split("#")[0].split(","); }
private void analyzeDescribeTable(ASTNode ast) throws SemanticException { ASTNode tableTypeExpr = (ASTNode) ast.getChild(0); String tableName = getFullyQualifiedName((ASTNode) tableTypeExpr .getChild(0)); HashMap<String, String> partSpec = null; // get partition metadata if partition specified if (tableTypeExpr.getChildCount() == 2) { ASTNode partspec = (ASTNode) tableTypeExpr.getChild(1); partSpec = getPartSpec(partspec); } DescTableDesc descTblDesc = new DescTableDesc(ctx.getResFile(), tableName, partSpec); if (ast.getChildCount() == 2) { int descOptions = ast.getChild(1).getType(); descTblDesc.setFormatted(descOptions == HiveParser.KW_FORMATTED); descTblDesc.setExt(descOptions == HiveParser.KW_EXTENDED); } rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), descTblDesc), conf)); setFetchTask(createFetchTask(DescTableDesc.getSchema())); LOG.info("analyzeDescribeTable done"); }
descTblDesc), conf); rootTasks.add(ddlTask); String schema = DescTableDesc.getSchema(showColStats); setFetchTask(createFetchTask(schema)); LOG.info("analyzeDescribeTable done");