[Bug] [dinky-metadata] datasource oracle generate sql all column type is string #3409
Closed
3 tasks done
Labels
Duplicate
This issue or pull request already exists
Search before asking
What happened
generate sql:
DROP TABLE IF EXISTS EXAMPLE_TABLE;
CREATE TABLE IF NOT EXISTS EXAMPLE_TABLE (
ID
STRING,VARCHAR_COL
STRING,CHAR_COL
STRING,NUMERIC_COL1
STRING,NUMERIC_COL2
STRING,DATE_COL
STRING,TIMESTAMP_COL
STRING,CLOB_COL
STRING,BLOB_COL
STRING) WITH ()
all cloumn type is string
What you expected to happen
Generate sql based on type mappinghttps://nightlies.apache.org/flink/flink-docs-release-1.19/docs/connectors/table/jdbc/#data-type-mapping
How to reproduce
oracle ddl:
CREATE TABLE example_table
(
id NUMBER(10, 0),
varchar_col VARCHAR2(100),
char_col CHAR(10),
numeric_col1 NUMBER(10, 2),
numeric_col2 NUMBER,
date_col DATE,
timestamp_col TIMESTAMP,
clob_col CLOB,
blob_col BLOB
);
use datasource->generate sql
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: