You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a difference between each type of information
information about the datasource structure never change
information about extract or load operations will vary depending on the use case
Therefore, it would be interresting to separate these concerns in different files.
Solution
This does not impact existing configurations.
Information about extract or load operations should be managed by the existing ingress-descriptor configuration. This configuration is loaded by the pull and push command via the existing flag : --ingress-descriptor<filename> or -i <filename>.
Ingress descriptor file already manage list of columns to select. The only missing information to complete extract/load operations is the import/export formats.
When using the --ingress-descriptor flag, import/export formats contained inside the ingress-descriptor file will be overriding informations loaded from the root table.yaml file. This is for retro-compatibility with current behavior.
The previous exemple could be configured like this :
Problem
tables.yaml
file mixes 2 types of informationsThis example :
Contains information about the datasource structure (tables names, primary keys, dbinfos types) :
And information about extract or load operations (list of columns to export, export formats, import formats) :
There is a difference between each type of information
Therefore, it would be interresting to separate these concerns in different files.
Solution
This does not impact existing configurations.
Information about extract or load operations should be managed by the existing ingress-descriptor configuration. This configuration is loaded by the
pull
andpush
command via the existing flag :--ingress-descriptor<filename>
or-i <filename>
.Ingress descriptor file already manage list of columns to select. The only missing information to complete extract/load operations is the import/export formats.
When using the
--ingress-descriptor
flag, import/export formats contained inside the ingress-descriptor file will be overriding informations loaded from the root table.yaml file. This is for retro-compatibility with current behavior.The previous exemple could be configured like this :
tables.yaml
ingress-descriptor.yaml
The following command would extract data with list of columns to export and export formats defined in
ingress-descriptor.yaml
$ lino pull source --ingress-descriptor ingress-descriptor.yaml
The following command would load data with list of columns to import and importformats defined in
ingress-descriptor.yaml
$ lino push source --ingress-descriptor ingress-descriptor.yaml
The text was updated successfully, but these errors were encountered: