zhilinli123 commented on code in PR #4721: URL: https://github.com/apache/seatunnel/pull/4721#discussion_r1322303436
##########
docs/en/connector-v2/source/redshift.md:
##########
@@ -0,0 +1,147 @@
+# Redshift
+
+> JDBC Redshift Source Connector
+
+## Support those engines
+
+> Spark<br/>
+> Flink<br/>
+> Seatunnel Zeta<br/>
+
+## Key features
+
+- [x] [batch](../../concept/connector-v2-features.md)
+- [ ] [stream](../../concept/connector-v2-features.md)
+- [x] [exactly-once](../../concept/connector-v2-features.md)
+- [x] [column projection](../../concept/connector-v2-features.md)
+- [x] [parallelism](../../concept/connector-v2-features.md)
+- [x] [support user-defined split](../../concept/connector-v2-features.md)
+
+> supports query SQL and can achieve projection effect.
+
+## Description
+
+Read external data source data through JDBC.
+
+## Supported DataSource Info
+
+| datasource | supported versions |
driver | url |
maven |
+|------------|----------------------------------------------------------|---------------------------------|-----------------------------------------|------------------------------------------------------------------------------------|
+| redshift | Different dependency version has different driver class. |
com.amazon.redshift.jdbc.Driver | jdbc:redshift://localhost:5439/database |
[Download](https://mvnrepository.com/artifact/com.amazon.redshift/redshift-jdbc42)
|
+
+## Database dependency
+
+> Please download the support list corresponding to 'Maven' and copy it to the
'$SEATNUNNEL_HOME/plugins/jdbc/lib/' working directory<br/>
+> For example Redshift datasource: cp RedshiftJDBC42-xxx.jar
$SEATNUNNEL_HOME/plugins/jdbc/lib/
+
+## Data Type Mapping
+
+| Redshift Data type
|
Seatunnel Data type
|
+|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
+| SMALLINT<br />INT2
| SHORT
|
+| INTEGER<br />INT<br />INT4
| INT
|
+| BIGINT<br />INT8<br />OID
| LONG
|
+| DECIMAL<br />NUMERIC
| DECIMAL((Get the designated column's
specified column size)+1,<br/>(Gets the designated column's number of digits to
right of the decimal point.))) |
+| REAL<br />FLOAT4
| FLOAT
|
+| DOUBLE_PRECISION<br />FLOAT8<br />FLOAT
| DOUBLE
|
+| BOOLEAN<br />BOOL
| BOOLEAN
|
+| CHAR<br />CHARACTER<br />NCHAR<br />BPCHAR<br />VARCHAR<br
/>CHARACTER_VARYING<br />NVARCHAR<br />TEXT<br />SUPER | STRING
|
+| DATE
| LOCALDATE
|
+| TIME<br />TIME_WITH_TIME_ZONE<br />TIMETZ
| LOCALTIME
|
+| TIMESTAMP<br />TIMESTAMP_WITH_OUT_TIME_ZONE<br />TIMESTAMPTZ
| LOCALDATETIME
|
+| GEOMETRY
| Not supported yet
|
+
+## Options
Review Comment:
Source Options
##########
docs/en/connector-v2/source/redshift.md:
##########
@@ -0,0 +1,147 @@
+# Redshift
+
+> JDBC Redshift Source Connector
+
+## Support those engines
+
+> Spark<br/>
+> Flink<br/>
+> Seatunnel Zeta<br/>
+
+## Key features
+
+- [x] [batch](../../concept/connector-v2-features.md)
+- [ ] [stream](../../concept/connector-v2-features.md)
+- [x] [exactly-once](../../concept/connector-v2-features.md)
+- [x] [column projection](../../concept/connector-v2-features.md)
+- [x] [parallelism](../../concept/connector-v2-features.md)
+- [x] [support user-defined split](../../concept/connector-v2-features.md)
+
+> supports query SQL and can achieve projection effect.
+
+## Description
+
+Read external data source data through JDBC.
+
+## Supported DataSource Info
+
+| datasource | supported versions |
driver | url |
maven |
+|------------|----------------------------------------------------------|---------------------------------|-----------------------------------------|------------------------------------------------------------------------------------|
+| redshift | Different dependency version has different driver class. |
com.amazon.redshift.jdbc.Driver | jdbc:redshift://localhost:5439/database |
[Download](https://mvnrepository.com/artifact/com.amazon.redshift/redshift-jdbc42)
|
+
+## Database dependency
+
+> Please download the support list corresponding to 'Maven' and copy it to the
'$SEATNUNNEL_HOME/plugins/jdbc/lib/' working directory<br/>
+> For example Redshift datasource: cp RedshiftJDBC42-xxx.jar
$SEATNUNNEL_HOME/plugins/jdbc/lib/
+
+## Data Type Mapping
+
+| Redshift Data type
|
Seatunnel Data type
|
+|-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
+| SMALLINT<br />INT2
| SHORT
|
+| INTEGER<br />INT<br />INT4
| INT
|
+| BIGINT<br />INT8<br />OID
| LONG
|
+| DECIMAL<br />NUMERIC
| DECIMAL((Get the designated column's
specified column size)+1,<br/>(Gets the designated column's number of digits to
right of the decimal point.))) |
+| REAL<br />FLOAT4
| FLOAT
|
+| DOUBLE_PRECISION<br />FLOAT8<br />FLOAT
| DOUBLE
|
+| BOOLEAN<br />BOOL
| BOOLEAN
|
+| CHAR<br />CHARACTER<br />NCHAR<br />BPCHAR<br />VARCHAR<br
/>CHARACTER_VARYING<br />NVARCHAR<br />TEXT<br />SUPER | STRING
|
+| DATE
| LOCALDATE
|
+| TIME<br />TIME_WITH_TIME_ZONE<br />TIMETZ
| LOCALTIME
|
+| TIMESTAMP<br />TIMESTAMP_WITH_OUT_TIME_ZONE<br />TIMESTAMPTZ
| LOCALDATETIME
|
+| GEOMETRY
| Not supported yet
|
+
+## Options
+
+| name | type | required | default |
description
|
Review Comment:
ditto
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
