Comments (13)
The config should be:
transform {
Sql {
source_table_name = "assignments"
result_table_name = "mongoassignments"
query = "select CAST(W6KEY as INT) as w6key, CAST(IFNULL(TASK,0),INT) as task from w6assignments"
}
}
use cast (name as int)
not cast(name,int)
from seatunnel.
from seatunnel.
Please share your seatunnel directory structure. By default, you don't need to modify the path of the jar package. You only need to put the mysql driver jar in the lib directory.
from seatunnel.
from seatunnel.
oh, you should execute install-plugin.sh
before use jdbc connector. You can refer https://seatunnel.apache.org/docs/2.3.5/start-v2/locally/deployment#step-3-install-connectors-plugin
from seatunnel.
from seatunnel.
you can use source code to build binary package. This way more easier to get all connector jar. Just run mvn clean package -DskipTests
in source code, then get binary package in seatunnel-dist/target
from seatunnel.
from seatunnel.
from seatunnel.
question, jdbc source can be used with STREAM job.mode?
no, you can't
from seatunnel.
配置应该是:
transform { Sql { source_table_name = "assignments" result_table_name = "mongoassignments" query = "select CAST(W6KEY as INT) as w6key, CAST(IFNULL(TASK,0),INT) as task from w6assignments" } }
cast (name as int)
不使用cast(name,int)
The config should be:
transform { Sql { source_table_name = "assignments" result_table_name = "mongoassignments" query = "select CAST(W6KEY as INT) as w6key, CAST(IFNULL(TASK,0),INT) as task from w6assignments" } }use
cast (name as int)
notcast(name,int)
你好,我有一个问题:
"query " : "select col1 from fake_1810212286042378240_fa where col1 > 2023-12-16T10:58:24.844'"
"query " : "select col1 from fake_1810212286042378240_fa where cast(col1 as integer) > 1720690455"
"query " : "select cast(col1 as integer) as col1 from fake_1810212286042378240_fa where col1 > 1720690455"
或者
"query " : "select col1 from fake_1810212286042378240_fa where col1 > cast('2023-12-16T10:58:24.844' as localdaetime)"并不能够找出增量数据。
前三者会报错左右字段不匹配,后者会报错不能转换。而且增量查询只能在transform中使用?请问我的query语句哪里有问题,谢谢你。col1是timestamp字段类型,
from seatunnel.
你好,我有一个问题:
"query " : "select col1 from fake_1810212286042378240_fa where col1 > 2023-12-16T10:58:24.844'"
"query " : "select col1 from fake_1810212286042378240_fa where cast(col1 as integer) > 1720690455"
"query " : "select cast(col1 as integer) as col1 from fake_1810212286042378240_fa where col1 > 1720690455"
或者
"query " : "select col1 from fake_1810212286042378240_fa where col1 > cast('2023-12-16T10:58:24.844' as localdaetime)"并不能够找出增量数据。
前三者会报错左右字段不匹配,后者会报错不能转换。而且增量查询只能在transform中使用?请问我的query语句哪里有问题,谢谢你。col1是timestamp字段类型,
Seem like a bug, could you create an issue for this? Thanks.
from seatunnel.
The config should be:
transform { Sql { source_table_name = "assignments" result_table_name = "mongoassignments" query = "select CAST(W6KEY as INT) as w6key, CAST(IFNULL(TASK,0),INT) as task from w6assignments" } }use
cast (name as int)
notcast(name,int)
你好,我有一个问题:
"query " : "select col1 from fake_1810212286042378240_fa where col1 > 2023-12-16T10:58:24.844'"
"query " : "select col1 from fake_1810212286042378240_fa where cast(col1 as integer) > 1720690455"
"query " : "select cast(col1 as integer) as col1 from fake_1810212286042378240_fa where col1 > 1720690455"
或者
"query " : "select col1 from fake_1810212286042378240_fa where col1 > cast('2023-12-16T10:58:24.844' as localdaetime)"我并不能找出增量数据。
前三者会报错左右字段不匹配,后者会报错不能转换。而且增量查询只能在transform使用中?请问我的查询语句在哪里有问题,谢谢你。col1是timestamp字段类型,看起来像是一个错误,你能为此创建一个问题吗?谢谢。
from seatunnel.
Related Issues (20)
- [Bug] Unable to create a source for identifier 'Iceberg'.
- clean and install error
- [Feature][Qdrant] Support qdrant connector source/sink
- [Feature][Typesense] Support typesense connector source/sink HOT 1
- [Feature][Weaviate] Support weaviate connector source/sink
- [Feature][Etcd] Support etcd connector source/sink
- [Feature][CDC] Support db2 cdc connector source HOT 2
- [Feature][CDC] Support Informix cdc connector source HOT 1
- [Feature][CDC] Support Cassandra cdc connector source
- [Feature][CDC] Support vitess cdc connector source
- [Feature][CDC] Support oceanbase cdc connector source
- [Feature][CDC] Support tidb cdc connector source HOT 1
- [Feature][Memcached] Support Memcached connector source/sink
- [Feature][Prometheus] Support Prometheus connector source/sink
- [Feature][pinecone] Support pinecone connector source/sink
- [Feature][CDC] Support DDL parse for oracle-cdc HOT 2
- [Bug] [seatunnel-plugin-discovery] Use error reporting in fatjar mode
- [Bug] [CDC] mysql cdc to paimon HOT 1
- [Bug] [Zeta ] Repeatedly releasing
- [Bug] [Module Name] Bug title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seatunnel.