Skip to content

Commit 4264bfb

Browse files
committed
fix: use standard Spice Cloud endpoints instead of region-specific URLs
Updated FlightQueryTest and ParameterizedQueryTest to use the standard Spice Cloud endpoints (data.spiceai.io and flight.spiceai.io) instead of region-specific URLs (us-east-1-prod-aws-* and us-west-2-prod-aws-*) which were causing 'failed to get spice client' errors.
1 parent 2051caa commit 4264bfb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/java/ai/spice/FlightQueryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public void testQuerySpiceCloudPlatform() throws ExecutionException, Interrupted
4545
try {
4646
SpiceClient spiceClient = SpiceClient.builder()
4747
.withApiKey(apiKey) // https://spice.ai/spiceai/quickstart
48-
.withHttpAddress(new URI("https://us-east-1-prod-aws-data.spiceai.io"))
49-
.withFlightAddress(new URI("https://us-east-1-prod-aws-flight.spiceai.io:443"))
48+
.withHttpAddress(new URI("https://data.spiceai.io"))
49+
.withFlightAddress(new URI("https://flight.spiceai.io:443"))
5050
.build();
5151

5252
String sql = "SELECT tpep_pickup_datetime, total_amount, passenger_count from taxi_trips limit 10;";

src/test/java/ai/spice/ParameterizedQueryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public void testParameterizedQuerySpiceCloud() throws Exception {
5454

5555
try (SpiceClient spiceClient = SpiceClient.builder()
5656
.withApiKey(apiKey)
57-
.withHttpAddress(new URI("https://us-west-2-prod-aws-data.spiceai.io"))
58-
.withFlightAddress(new URI("https://us-west-2-prod-aws-flight.spiceai.io:443"))
57+
.withHttpAddress(new URI("https://data.spiceai.io"))
58+
.withFlightAddress(new URI("https://flight.spiceai.io:443"))
5959
.build()) {
6060

6161
// Test with float parameter - taxi_trips available in Spice Cloud

0 commit comments

Comments
 (0)