Commit a48df6b8 authored by 赵建伟's avatar 赵建伟

update codes

parent 3bfcf095
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
<workItem from="1584945647680" duration="4469000" /> <workItem from="1584945647680" duration="4469000" />
<workItem from="1588148891822" duration="2318000" /> <workItem from="1588148891822" duration="2318000" />
<workItem from="1588152718016" duration="1463000" /> <workItem from="1588152718016" duration="1463000" />
<workItem from="1588154601852" duration="23406000" /> <workItem from="1588154601852" duration="23750000" />
</task> </task>
<servers /> <servers />
</component> </component>
......
...@@ -80,9 +80,9 @@ public class SparksqlServiceImpl implements SparksqlService { ...@@ -80,9 +80,9 @@ public class SparksqlServiceImpl implements SparksqlService {
ResultSetMetaData metaData = rs.getMetaData(); ResultSetMetaData metaData = rs.getMetaData();
int columnCount = metaData.getColumnCount(); int columnCount = metaData.getColumnCount();
for(int i=1;i<= columnCount;i++){ for(int i=1;i<= columnCount;i++){
String catalogName = metaData.getCatalogName(i); String columnName = metaData.getColumnName(i);
headers.add(catalogName); //String catalogName = metaData.getCatalogName(i);
//headers.add("AA"); headers.add(columnName);
} }
while(rs.next()){ while(rs.next()){
List<String> rowVals = new ArrayList<String>(); List<String> rowVals = new ArrayList<String>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment