question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug related to snowflake changes the column name to capital case and jdbc driver doesn't support it

See original GitHub issue

Hi,

In snowflake if I fire any sql with an alias or without alias the result column names are automatically converted to capital case.

Due to the above capitalization, this method will throw the exception for the column name which is correct from java side

`@Override public int findColumn(String columnLabel) throws SQLException { logger.debug( “public int findColumn(String columnLabel)”);

int columnIndex = resultSetMetaData.getColumnIndex(columnLabel);

if (columnIndex == -1)
{
  throw new SQLException("Column not found: " + columnLabel);
}
else
{
  return ++columnIndex;
}

} `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mohanraocommented, Sep 21, 2018

@smtakeda @howryu I feel there should be different way need to be provided by the jdbc client to override this.

1reaction
mohanraocommented, Sep 21, 2018

@smtakeda I will work to provide a sample application code. Because currently i started working on real prod app

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ: When I retrieve database, schema, table, or column ...
FAQ: When I retrieve database, schema, table, or column names, why does Snowflake display them in uppercase?
Read more >
Snowflake Connector for Spark Release Notes
This article contains the release notes for the Snowflake Connector for Spark, including the following when applicable: Behavior changes ...
Read more >
Knowledge: Client Release History (Prior to January 2022)
The contents of this article covers client releases prior to January 2022. For current release notes for Snowflake connectors, drivers, and libraries see ......
Read more >
JDBC driver bug: db parameter is ignored; queries return error ...
JDBC driver bug : db parameter is ignored; queries return error "This session does not have a current database. Call 'USE DATABASE', or...
Read more >
Behavior Change Log - Snowflake Community
To help you manage your operations and minimize disruption to your Snowflake service, we document behavior changes that may impact your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found