oceanbase / odc

OceanBase Developer Center(ODC), An open-source, enterprise-grade database tool for collaborative development
https://github.com/oceanbase/odc
Apache License 2.0
533 stars 53 forks source link

[Bug]: empty .sql format data file import failed #3272

Open yehaow opened 3 weeks ago

yehaow commented 3 weeks ago

ODC version

ODc 432

OB version

independent

What happened?

empty .sql format data file import failed image image

What did you expect to happen?

import success

How can we reproduce it (as minimally and precisely as possible)?

  1. create new ticket for data import
  2. upload empty .sql data file
  3. excute import

Anything else we need to know?

No response

persistafei commented 3 weeks ago

This is a bug in obloader, empty files are ignored, thus actually there is only a single file left. Single file data import is handled separately, in this case it was treated incorrectly.