Skip to content

Commit 459b2aa

Browse files
AndyMorelandclaude
andcommitted
Fix Jackson PropertyNamingStrategy removed in 2.14
Use PropertyNamingStrategies.SNAKE_CASE instead of the removed PropertyNamingStrategy.SNAKE_CASE constant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b437f21 commit 459b2aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/ai/chalk/internal/request/models/OnlineQueryResultFeather.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import ai.chalk.models.QueryMeta;
99
import com.fasterxml.jackson.databind.DeserializationFeature;
1010
import com.fasterxml.jackson.databind.ObjectMapper;
11-
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
11+
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
1212
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
1313
import org.apache.arrow.memory.BufferAllocator;
1414
import org.apache.arrow.vector.table.Table;
@@ -34,7 +34,7 @@ public record OnlineQueryResultFeather(Boolean hasData, Table scalarData, Map<St
3434
public static OnlineQueryResultFeather fromBytes(byte[] bytes, BufferAllocator allocator) throws ChalkException {
3535
ObjectMapper mapper = new ObjectMapper();
3636
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
37-
mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
37+
mapper.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE);
3838
mapper.registerModule(new JavaTimeModule());
3939

4040
Map<String, Object> res;

0 commit comments

Comments
 (0)