docs icon indicating copy to clipboard operation
docs copied to clipboard

IMPORT INTO autodetect file format and wildcards for file path

Open alastori opened this issue 6 months ago • 2 comments

What is changed, added or deleted? (Required)

  • Format detection based on file extensions (.csv, .sql, .parquet) for IMPORT INTO jobs.
  • An explicit note is added to clarify that each IMPORT INTO job must target one file format; wildcards that match mixed extensions fail the pre-check and require separate jobs.
  • It is explained that compression suffixes (.gz, .zstd, .snappy, …) are ignored when TiDB infers the file format.
  • Minor wording clean-ups for consistency.

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • [ ] master (the latest development version)
  • [x] v9.0 (TiDB 9.0 versions)
  • [ ] v8.5 (TiDB 8.5 versions)
  • [ ] v8.4 (TiDB 8.4 versions)
  • [ ] v8.3 (TiDB 8.3 versions)
  • [ ] v8.1 (TiDB 8.1 versions)
  • [ ] v7.5 (TiDB 7.5 versions)
  • [ ] v7.1 (TiDB 7.1 versions)
  • [ ] v6.5 (TiDB 6.5 versions)
  • [ ] v6.1 (TiDB 6.1 versions)
  • [ ] v5.4 (TiDB 5.4 versions)

What is the related PR or file link(s)?

  • This PR is translated from: https://github.com/pingcap/docs-cn/pull/20496 (partially)
  • Other reference link(s): https://github.com/pingcap/tidb/pull/59543

Do your changes match any of the following descriptions?

  • [ ] Delete files
  • [ ] Change aliases
  • [ ] Need modification after applied to another branch
  • [ ] Might cause conflicts after applied to another branch

alastori avatar Jun 18 '25 03:06 alastori

@River2000i for technical review.

alastori avatar Jun 18 '25 03:06 alastori

@River2000i: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

LGTM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

ti-chi-bot[bot] avatar Oct 13 '25 03:10 ti-chi-bot[bot]

@lilin90: Your lgtm message is repeated, so it is ignored.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

ti-chi-bot[bot] avatar Nov 13 '25 06:11 ti-chi-bot[bot]

[LGTM Timeline notifier]

Timeline:

  • 2025-11-10 08:25:21.683410503 +0000 UTC m=+690571.126440372: :ballot_box_with_check: agreed by lilin90.
  • 2025-11-14 00:39:45.632602979 +0000 UTC m=+1008235.075632859: :ballot_box_with_check: agreed by hfxsd.

ti-chi-bot[bot] avatar Nov 14 '25 00:11 ti-chi-bot[bot]

/approve

lilin90 avatar Nov 14 '25 09:11 lilin90

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lilin90

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

ti-chi-bot[bot] avatar Nov 14 '25 09:11 ti-chi-bot[bot]