File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -395,11 +395,10 @@ EOF
395395
396396 # Check if data exists in SurrealDB
397397 log_info " Checking data in SurrealDB..."
398- data_check=$( kubectl exec " $SURREALDB_POD_NAME " -- /surreal sql \
399- -u root -p root --ns airbyte --db airbyte \
400- --query " SELECT * FROM test_dataset LIMIT 1;" 2> /dev/null || echo " []" )
398+ data_check=$( echo " SELECT * FROM test_dataset LIMIT 1;" | kubectl exec " $SURREALDB_POD_NAME " -- /surreal sql \
399+ -u root -p root --ns airbyte --db airbyte 2> /dev/null || echo " [[]]" )
401400
402- if echo " $data_check " | grep -q " \[\]" || [ -z " $data_check " ]; then
401+ if echo " $data_check " | grep -q " \[\[\]\ ]" || [ -z " $data_check " ]; then
403402 log_warning " No data found in SurrealDB, but sync job completed successfully"
404403 log_info " This might be expected if the test dataset is empty or the table name is different"
405404 else
You can’t perform that action at this time.
0 commit comments