我有大约四个*.sql自带转储(每个大约20 to ),我需要将它们转换为Apache中的数据集。我尝试过使用InnoDB安装和制作本地数据库并导入转储,但这似乎太慢了(花了大约10个小时)import org.apache.spark.sql.SparkSession//This will also show you the structure of the sql dump for your usecase.是否有为编写的.sql解析器?
有更快的方法吗
我正在尝试使用TSql100Parser.ParseStatementList方法以编程方式解析sql语句并提取对象名称。它来自Microsoft.Data.Schema.ScriptDom.Sql名称空间。代码如下:var parser = new TSql100Parser(这很奇怪,因为TSql100.Parse方法成功地解析了相同的