[MDEV-22572] Unable to access Zip table from multiple Zip files Created: 2020-05-15 Updated: 2020-07-16 Resolved: 2020-06-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.2.33, 10.3.24, 10.4.14, 10.5.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jean-Baptiste BUGEAUD | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | connect-engine, zip | ||
| Environment: |
Docker mariadb latest |
||
| Epic Link: | Self Referencing Zip Table |
| Description |
|
I am not able to get the zip table of multiple zip. This is required when references are split into multiple .zip files to limit the size or group files in functional domains. Creation of TestZip2 table will be fine : {{create table TestZip2 ( But trying to access the created table will result in an error like : Example of file used in the tmp folder is : FYI, Fixing this would help to implement the "Self Referencing Zip Table" Epic as well. |
| Comments |
| Comment by Olivier Bertrand [ 2020-05-18 ] |
|
Multiple is not implemented for ZIP tables. Actually, it generally makes no sense. It is meant to return the descriptions of the files that are zipped into the zip file. If the multiple zip files contain different internal files as in your sample files, what should be returned? But if you now that they all contain the same internal files, suffice to test only one of them. |
| Comment by Jean-Baptiste BUGEAUD [ 2020-05-18 ] |
|
Bonjour Olivier, It actually makes quite sense in an MDM interface context. Here as an example the CCAM reference data (action codes for the French Assurance Maladie that people are required to use to be reimbursed) are a perfect example of such pattern. CCAM are updated regulary and we don't know how much zip we can get and which zip will hold which table. All we know is where we get the data and that there will be DBF in a ZIP buch of files to contain all the required tables. So, as a sum up, if makes perfect sense when files are provided as an unknown amount of ZIP files splitted for any reason by the source team. Which will be the case in most MDM interfaces where source team tend to act as king of their castle. As a consuming system, we have to digest them as a whole and can use them as Connect DBF using say a schedules table creation. Having all the meta data at once enables us to get the whole list of that tables by iterating the ZIP table and get data files entries reference and create the tables using connect (here table TDB). This really a great feature, thanks to the Connect engine As multiple is working on other cases in connect, I was expecting this to work on ZIP as well as the agregation on other type looked quite close to me. Can you reopen this ? |
| Comment by Olivier Bertrand [ 2020-05-18 ] |
|
Seems to be useful. |
| Comment by Olivier Bertrand [ 2020-05-18 ] |
|
This will list all the zipped files in all zip files. Useful mainly when the special column giving the zip file names is added. |
| Comment by Olivier Bertrand [ 2020-06-25 ] |
|
This fix was not included in MariaDB 10.5.4 |