pingcap / pingcap/docs

Add missing information for the customized files importing doc

Open
#11,943 1 comment 0 reactions 1 assignee View on GitHub

@ran-huang is already working on this.

Since Jan 9, 2023.

area/tidb-lightning
Dominant language
Python
Stars
617
Forks
724
Avg merge
2d 10h
Merged PRs (30d)
223

Description

File: /release-6.1/tidb-lightning/tidb-lightning-data-source.md

Importing customized csv files needs more configuration, such as the pattern of table/schema DDL file name, such as:
`
[[mydumper.files]]
pattern = '^(test1).(tbl1)-schema.sql'
schema = "$1"
table = "$2"
type = "table-schema"

[[mydumper.files]]
pattern = '^(test1)-schema-create.sql'
schema = "$1"
type = "schema-schema"
`
Without the patterns for table/schema DDL file, users will meet a "schema not found" error if the table/schema are not created in advance.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.