fluent / fluent/fluent-plugin-sql

Record ID written to state file as string

オープン
#125 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Ruby
スター
112
フォーク
58
PR マージ指標
30日以内にマージされた PR はありません

説明

I have two tables selected from Oracle database. For one of these ID column value for last record is written back to state file as text

```
---
last_records:
app.application_log_vw:
id: '163431515.0'
```

Next run fails for this reason with

`OCIError: ORA-01722: invalid number`

Only difference between the two tables is in ID having little different datatype declaration. One having NUMBER(38) and the problematic one only NUMBER.

Ruby gem versions

```
ruby-oci8-2.2.11
activerecord-oracle_enhanced-adapter-6.1.6
activerecord-6.1.4.6
activesupport-6.1.4.6
activerecord-oracle_enhanced-adapter-6.1.6
fluent-plugin-sql-2.3.0
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Reproduce the state-file write and next-run failure with Oracle columns declared as NUMBER(38) and NUMBER. Trace how the selected record ID is converted before it is written to the state file, then verify that the persisted value remains usable by the next query and no longer causes ORA-01722.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ruby, sql
領域
databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。