alibaba / alibaba/DataX

ORACLE 同步数据到 mongo : int64 位类型

Open
#1,843 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

ORACLE 表中同步到 mongo DB 中: 配置的数据类型的映射
"column": [
{
"name": "id",
"type": "Long"
},
{
"name": "id_person",
"type": "Long"
},

日志报错:

{"message":"record's [0] column's type should be: Long","record":[{"byteSize":7,"index":0,"rawData":"1869849","type":"DOUBLE"},

目的是转换成 mongo的 int64位的数据类型。

各位大佬, 帮忙看看!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Oracle-to-Mongo synchronization with the shown Long column configuration and inspect why the source record is reported as DOUBLE. Confirm the relevant DataX connector entry point from the error, then verify that the value is accepted and written to MongoDB as an int64.】【。

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.