Skip to content

[Bug] SQL Server JDBC Catalog Column Type Mapping #64464

@khaidot

Description

@khaidot

Search before asking

  • I had searched in the issues and found no similar issues.

Version

4.0.5

What's Wrong?

when querying SQL SERVER catalog from doris, it converts '1' (string) to TRUE

eg.
Select * from mssql.dbo.Table where IsActive = '1'
will be converted to
Select * from mssql.dbo.Table where IsActive = TRUE
if the target column data type is BIT

which will cause this error
SQLServerException: Invalid column name 'TRUE'.

Version 2.1.10 does not have this issue

What You Expected?

No error due to conversion

How to Reproduce?

  1. Create SQL server catalog
  2. Query a BIT column with filter 'value = '1''
  3. Error appears

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions