Skip to content

Commit 522d3a9

Browse files
committed
async-aws(Athena Client): add new ligne in psalm.baseline.xml
1 parent 2be9dd9 commit 522d3a9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/clients/athena.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ $startQueryResult = $athena->startQueryExecution(new StartQueryExecutionInput([
5555
'Database' => 'production_db', // REQUIRED
5656
]),
5757
'ResultConfiguration' => new ResultConfiguration([
58-
'OutputLocation' => 's3://output_bucket_Location', // REQUIRED
58+
'OutputLocation' => 's3://test_output_bucket', // REQUIRED
5959
'EncryptionConfiguration' => new EncryptionConfiguration([
60-
'EncryptionOption' => 'SSE_S3', // REQUIRED SSE_S3|SSE_KMS|CSE_KMS
60+
'EncryptionOption' => 'SSE_S3', // REQUIRED
6161
])
6262
]),
6363
]));
@@ -92,7 +92,7 @@ $results = $athena->getQueryResults(new GetQueryResultsInput([
9292
/** @var Row $row */
9393
foreach ($results => $row) {
9494
if ($index === 0) {
95-
$columnLabels = array_column($row->getData(), 'VarCharValue'); // $row->getData() return [ 'VarCharValue' => value]
95+
$columnLabels = array_column($row->getData(), 'VarCharValue'); // $row->getData() return [ 'VarCharValue' => value, ...]
9696
}
9797
$columnValues[] = array_column($row->getData(), 'VarCharValue');
9898
}

psalm.baseline.xml

+5
Original file line numberDiff line numberDiff line change
@@ -551,4 +551,9 @@
551551
<code>uuid_create(\UUID_TYPE_RANDOM)</code>
552552
</UndefinedFunction>
553553
</file>
554+
<file src="src/Service/Athena/src/Result/GetQueryResultsOutput.php">
555+
<InvalidReturnType occurrences="1">
556+
<code>\Traversable&lt;Row&gt;</code>
557+
</InvalidReturnType>
558+
</file>
554559
</files>

0 commit comments

Comments
 (0)