1

我正在从我的 Lambda 执行查询,类似于文档中提供的示例:

QueryExecutionContext queryExecutionContext = new QueryExecutionContext().withDatabase(dbName);

ResultConfiguration resultConfiguration = new ResultConfiguration().withOutputLocation("s3://" + resultBucket + "/");

StartQueryExecutionRequest startQueryExecutionRequest = new StartQueryExecutionRequest()
        .withQueryString(queryString)
        .withQueryExecutionContext(queryExecutionContext)
        .withResultConfiguration(resultConfiguration);

StartQueryExecutionResult startQueryExecutionResult = client.startQueryExecution(startQueryExecutionRequest);

正如预期的那样,在包含所选行的结果存储桶中创建了一个 csv 文件。它的内容类型是二进制/八位字节流。有什么方法可以让 Athena 创建带有 text/plain 类型的文件?

4

0 回答 0