-
Bug
-
Resolution: Done
-
Major
-
2.2.1.Final
-
None
-
False
-
None
-
False
-
Critical
In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.
Bug report
For bug reports, provide this information, please:
What Debezium connector do you use and what version?
OracleConnector 2.2.1.Final
What is the connector configuration?
Xstream mode
What is the captured database version and mode of depoyment?
(E.g. on-premises, with a specific cloud provider, etc.)
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0
What behaviour do you expect?
Parsing DDL statements correctly.
Need to support negative values of oracle type number in table subpartition.
What behaviour do you see?
ERROR [dconn_cvt|task-0] Producer failure (io.debezium.pipeline.ErrorHandler:57)
io.debezium.text.ParsingException: DDL statement couldn't be parsed. Please open a Jira issue with the statement '
...
extraneous input '-' expecting {'CHR', 'DEFAULT', 'MAXVALUE', 'TIMESTAMP', 'DECODE', 'NVL', 'SUBSTR', 'TO_CHAR', 'TRIM', 'TO_DATE', UNSIGNED_INTEGER, APPROXIMATE_NUM_LIT, CHAR_STRING}
at io.debezium.antlr.ParsingErrorListener.syntaxError(ParsingErrorListener.java:43)
at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41)
at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:543)
at org.antlr.v4.runtime.DefaultErrorStrategy.reportUnwantedToken(DefaultErrorStrategy.java:377)
at org.antlr.v4.runtime.DefaultErrorStrategy.singleTokenDeletion(DefaultErrorStrategy.java:548)
at org.antlr.v4.runtime.DefaultErrorStrategy.sync(DefaultErrorStrategy.java:266)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.list_values_clause(PlSqlParser.java:62019)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.list_subpartition_desc(PlSqlParser.java:61677)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.range_partition_desc(PlSqlParser.java:60741)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.composite_range_partitions(PlSqlParser.java:60059)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.table_partitioning_clauses(PlSqlParser.java:59069)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.relational_table(PlSqlParser.java:58778)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.create_table(PlSqlParser.java:57008)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.unit_statement(PlSqlParser.java:2534)
at io.debezium.ddl.parser.oracle.generated.PlSqlParser.sql_script(PlSqlParser.java:2097)
at io.debezium.connector.oracle.antlr.OracleDdlParser.parseTree(OracleDdlParser.java:73)
at io.debezium.connector.oracle.antlr.OracleDdlParser.parseTree(OracleDdlParser.java:32)
at io.debezium.antlr.AntlrDdlParser.parse(AntlrDdlParser.java:78)
at io.debezium.connector.oracle.antlr.OracleDdlParser.parse(OracleDdlParser.java:68)
at io.debezium.connector.oracle.OracleSchemaChangeEventEmitter.emitSchemaChangeEvent(OracleSchemaChangeEventEmitter.java:84)
at io.debezium.pipeline.EventDispatcher.dispatchSchemaChangeEvent(EventDispatcher.java:318)
at io.debezium.connector.oracle.xstream.LcrEventHandler.dispatchDataChangeEvent(LcrEventHandler.java:183)
at io.debezium.connector.oracle.xstream.LcrEventHandler.processRowLCR(LcrEventHandler.java:149)
at io.debezium.connector.oracle.xstream.LcrEventHandler.processLCR(LcrEventHandler.java:117)
at oracle.streams.XStreamOut.XStreamOutReceiveLCRCallbackNative(Native Method)
at oracle.streams.XStreamOut.receiveLCRCallback(XStreamOut.java:465)
at io.debezium.connector.oracle.xstream.XstreamStreamingChangeEventSource.execute(XstreamStreamingChangeEventSource.java:107)
at io.debezium.connector.oracle.xstream.XstreamStreamingChangeEventSource.execute(XstreamStreamingChangeEventSource.java:42)
at io.debezium.pipeline.ChangeEventSourceCoordinator.streamEvents(ChangeEventSourceCoordinator.java:174)
at io.debezium.pipeline.ChangeEventSourceCoordinator.executeChangeEventSources(ChangeEventSourceCoordinator.java:141)
at io.debezium.pipeline.ChangeEventSourceCoordinator.lambda$start$0(ChangeEventSourceCoordinator.java:109)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Do you see the same behaviour using the latest relesead Debezium version?
(Ideally, also verify with latest Alpha/Beta/CR version)
Yes
Do you have the connector logs, ideally from start till finish?
(You might be asked later to provide DEBUG/TRACE level log)
No
How to reproduce the issue using our tutorial deployment?
Create table on source database like:
CREATE TABLE "ZZZ"."TASKVOLUME"
( "TASK" NUMBER,
"SUBJECT" NUMBER NOT NULL ENABLE,
"VOL" NUMBER,
"START_TIME" DATE,
"END_TIME" DATE,
SUPPLEMENTAL LOG DATA (ALL) COLUMNS,
SUPPLEMENTAL LOG DATA (PRIMARY KEY) COLUMNS,
SUPPLEMENTAL LOG DATA (UNIQUE INDEX) COLUMNS,
SUPPLEMENTAL LOG DATA (FOREIGN KEY) COLUMNS
)
PARTITION BY RANGE ("TASK")
SUBPARTITION BY LIST ("VOL")
(PARTITION "VOL_0" VALUES LESS THAN (1)
( SUBPARTITION "VOL_0_R" VALUES (-1) ,
SUBPARTITION "VOL_0_01" VALUES (01) ,
SUBPARTITION "VOL_0_02" VALUES (02) ,
SUBPARTITION "VOL_0_03" VALUES (03) ,
SUBPARTITION "VOL_0_04" VALUES (04) ) ,
PARTITION "VOL_1" VALUES LESS THAN (2)
( SUBPARTITION "VOL_1_R" VALUES (-1) ,
SUBPARTITION "VOL_1_01" VALUES (01) ,
SUBPARTITION "VOL_1_02" VALUES (02) ,
SUBPARTITION "VOL_1_03" VALUES (03) ,
SUBPARTITION "VOL_1_04" VALUES (04) ) ,
PARTITION "VOL_2" VALUES LESS THAN (3)
( SUBPARTITION "VOL_2_R" VALUES (-1) ,
SUBPARTITION "VOL_2_01" VALUES (01) ,
SUBPARTITION "VOL_2_02" VALUES (02) ,
SUBPARTITION "VOL_2_03" VALUES (03) ,
SUBPARTITION "VOL_2_04" VALUES (04) ) ,
PARTITION "VOL_3" VALUES LESS THAN (4)
( SUBPARTITION "VOL_3_R" VALUES (-1) ,
SUBPARTITION "VOL_3_01" VALUES (01) ,
SUBPARTITION "VOL_3_02" VALUES (02) ,
SUBPARTITION "VOL_3_03" VALUES (03) ,
SUBPARTITION "VOL_3_04" VALUES (04) ) ) ;
Run connector in xstream mode.
Feature request or enhancement
For feature requests or enhancements, provide this information, please:
Which use case/requirement will be addressed by the proposed feature?
<Your answer>
Implementation ideas (optional)
<Your answer>
- links to
-
RHEA-2023:120698 Red Hat build of Debezium 2.3.4 release