Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-780

DB column name schema value is not available at runtime

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • None
    • All
    • Hide

      The DB name can be set in a service (ensure to scope the storage for the duration of a job using postconstruct/predestroy if you use that option) or just read once per component if it has access to that data (it is the case for JDBC typically or more generally database components).

      We want to avoid to start going that way to avoid to have a schema structure which is never used more than at 5% of its data which leads to a lot of issues and misunderstanding on the dev and end user sides.

      Show
      The DB name can be set in a service (ensure to scope the storage for the duration of a job using postconstruct/predestroy if you use that option) or just read once per component if it has access to that data (it is the case for JDBC typically or more generally database components). We want to avoid to start going that way to avoid to have a schema structure which is never used more than at 5% of its data which leads to a lot of issues and misunderstanding on the dev and end user sides.
    • Small

    Description

      According to documentation Structure annotation must be used to define a schema field (https://talend.github.io/component-runtime/main/0.0.7/gallery.html).
      According to Structure doc it can be either a list of strings or map string by string:

      @Documentation("Mark a List<String> or Map<String, String> field as being represented as "
              + "the component data selector (field names generally or field names as key and type as value).")
      ...
      public @interface Structure {
      

      As agreed with igonchar we also need an ability to retrieve DB column name from schema at runtime.

      Attachments

        Activity

          People

            igonchar Ivan Gonchar
            ovarnavina Olha Varnavina (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: