I have 3 tables that has the described connections:
A->B->C
Basically i have FK from A to B and B to C.
I'm trying to put all the data into a unique document with a list of B inside A and a list of C inside B.
This is possible?
I'm using jdbc_streaming to put the B elements into the A, but how do i put the C elements inside the B??
Table B and C are not static at all. Both tables are very intensive with new data, specially C (errors).
The use case is processing files (ETL) and register the file, its processes (lines) and errors ( encountered in line).
Before we look at the possibilities, is there likely to be a timing problem? Are the child records written to B and C before the parent write to A, or maybe all are in a transaction?
In this case I think you need two jdbc_streaming filters and the jdbc input.
The jdbc input collects new records from A, then the first jdbc_streaming filter collects a matching record from B and the second jdbc_streaming filter collects a matching record from C.
I did that, but how to i put the records from C inside the data of B? That's what i'm asking?
Currently i have B and C data inside the A record, not C inside B that is inside A.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.