I am trying to find out how to do dynamic creation of tables in MySQL using Talend. In other ETL tools such as Pentaho they have a specific component called "metadata" to do this. So my use case is the following: 1) Create database manually in MySQL 2) Use Talend to read CSV Header info, and use this as the fields of a table to be created in MySQL using Talend.
I have searched and could not find anything for this specific feature online. [Note : using Talend Open Studio for Big Data Version: 6.4.1]
UPDATE:
I have made progress on this, but running into issues trying to generate a primary key on the MySQL output using the NumericSequence function. My data does not have natively a primary key, but wish to include one: I have a screenshot of the tMap attached here:
Also I am getting a compile/build error. It seems it does not like the primary key generation it seems.
See attached image.
And here also is the tMySQLOutput settings for Primary Key:
More Work Done:
I have changed the name of the Primary Key in the tMySQL component to match the name of the tMap output area component, i get the same compile error. I will attach this error here:



