Github user risdenk commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/104#discussion_r85476907
--- Diff:
solr/solrj/src/java/org/apache/solr/client/solrj/io/stream/JDBCStream.java ---
@@ -223,7 +223,7 @@ public void open() throws IOException {
for(int columnIdx = 0; columnIdx < metadata.getColumnCount();
++columnIdx){
final int columnNumber = columnIdx + 1; // cause it starts at 1
- final String columnName = metadata.getColumnName(columnNumber);
+ final String columnName = metadata.getColumnLabel(columnNumber);
--- End diff --
This makes sure to use the `AS` value instead of just the original column
name.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]