Giter Site home page Giter Site logo

Comments (13)

Hisoka-X avatar Hisoka-X commented on July 16, 2024

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.

a11dev avatar a11dev commented on July 16, 2024

from seatunnel.

Hisoka-X avatar Hisoka-X commented on July 16, 2024

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.

a11dev avatar a11dev commented on July 16, 2024

from seatunnel.

Hisoka-X avatar Hisoka-X commented on July 16, 2024

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.

a11dev avatar a11dev commented on July 16, 2024

from seatunnel.

Hisoka-X avatar Hisoka-X commented on July 16, 2024

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.

a11dev avatar a11dev commented on July 16, 2024

from seatunnel.

a11dev avatar a11dev commented on July 16, 2024

from seatunnel.

Hisoka-X avatar Hisoka-X commented on July 16, 2024

question, jdbc source can be used with STREAM job.mode?

no, you can't

from seatunnel.

NoPr avatar NoPr commented on July 16, 2024

配置应该是:

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) not cast(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.

Hisoka-X avatar Hisoka-X commented on July 16, 2024

你好,我有一个问题:
"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.

NoPr avatar NoPr commented on July 16, 2024

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)

你好,我有一个问题:
"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字段类型,

看起来像是一个错误,你能为此创建一个问题吗?谢谢。

你好,这是我创建的issues
#7172

from seatunnel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.