microsoft / microsoft/DacFx

Improve the default folder pathing to use ISO8601 when using sqlpackage.exe to exporting data to synapse

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement parquet
Dominant language
C#
Stars
460
Forks
29
Avg merge
4d 9h
Merged PRs (30d)
7

Description

Currently if a root folder path is not provided the resulting folder is created as M-DD-YY_HH:MM_(AM|PM)

I think it would be better if the format used an ISO-8601 based format with more consistent separators and casing throughout. possibly leveraging folders:

Here would be some samples for the container root (assuming export time is 2021-06-16T19:49:38Z)
Note: AM PM indicator is unneeded as we are already using a 24hr clock to resolve ambiguity.

1) file based: \2021-06-16T19:49-01\

2) folder based: \2021\06\16\1949\01\

the trailing 01 would increase in case multiple export were received within the same minute. alternatively this could be some type of session or requestid from the dedicated pool

Finally each schema should be put into a separate sub folder, as opposed to having a single flat folder for all objects.

Hope this is useful

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the sqlpackage.exe Synapse export path described in the issue and trace how the default container root is created when no root folder is supplied. Done means selecting and documenting one ISO-8601 naming scheme, handling exports received within the same minute, and placing each schema in its own subfolder.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, sql
Domain
cloud, data-engineering, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.