Skip to content

SNOW-2160960: JDBC Not sending the correct sql for getColumns #2222

Open
@Keithbas

Description

@Keithbas

Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!

  1. What version of JDBC driver are you using? 3.9.2

  2. What operating system and processor architecture are you using? Windows

  3. What version of Java are you using? 1.8

  4. What did you do?

I have run the getColumns method multiple times with no success in filtering by a schema and table name resulting in long (up to 5 minutes) run time per call.

  1. What did you expect to see?
    I have run the command multiple ways:

getColumns("DATABASE_NAME",'SCHEMA_NAME", "TABLE_NAME", "%")

When I look in the Query History in Snowflake I see:

show columns in database "DATABASE_NAME"

When I would expect to see:

show columns in database "DATABASE_NAME".'SCHEMA_NAME"."TABLE_NAME"."%"

I have tried the escape character solution(because _ can be a wildcard:

getColumns("DATABASE_NAME",'SCHEMA_NAME", "TABL\E_NAME", "%")

result SQL in Snowflake:

show columns in database "DATABASE_NAME"

Which resulted in a SQL failure saying that "DATABASE_NAME" does not exist

  1. Can you set logging to DEBUG and collect the logs?

Metadata

Metadata

Labels

questionIssue is a usage/other question rather than a bugstatus-information_neededAdditional information is required from the reporterstatus-pending_closureIf no further assistance is needed, let's close the issue out.status-triageIssue is under initial triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions