pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
36.79k stars 5.8k forks source link

Add LOAD_FILE() function #8436

Open morgo opened 5 years ago

morgo commented 5 years ago

Feature Request

Is your feature request related to a problem? Please describe:

Not a high priority, but apart from SOUNDEX() the LOAD_FILE function is the only string function not supported by TiDB.

In MySQL it is rarely used because of security implications.

Describe the feature you'd like:

LOAD_FILE as in MySQL 5.7: https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_load-file

Describe alternatives you've considered:

The alternative is to document as won't support.

Teachability, Documentation, Adoption, Migration Strategy:

breezewish commented 4 years ago

LOAD_FILE is used in RQG to generate blob payload.