Skip to content

Latest commit

 

History

History
61 lines (33 loc) · 2.57 KB

20230928_04.md

File metadata and controls

61 lines (33 loc) · 2.57 KB

DuckDB 语法糖: Automatic JSON to nested types conversion

作者

digoal

日期

2023-09-28

标签

PostgreSQL , PolarDB , duckdb , 语法糖


背景

duckdb增加了很多SQL语法糖, 目标是要让用户可以随心所欲的写SQL.

https://duckdb.org/2023/08/23/even-friendlier-sql.html

Automatic JSON to nested types conversion , 支持自动识别JSON

INSTALL httpfs;  
LOAD httpfs;  
INSTALL json;  
LOAD json;  
  
SELECT   
     starfleet[10].model AS starship   
FROM 'https://raw.githubusercontent.com/vlad-saling/star-trek-ipsum/master/src/content/content.json';  
starship  
  
USS Farragut - NCC-1647 - Ship on which James Kirk served as a phaser station operator. Attacked by the Dikironium Cloud Creature, killing half the crew. ad.  

digoal's wechat