FiveonefourFiveonefour
Fiveonefour Docs
MooseStackTemplatesGuides
Release Notes
Source514
  1. MooseStack
  2. Data Types
  3. Array Types

On this page

Basic ArraysArrays of Complex TypesType Mapping Reference

Array Types

Arrays store ordered collections of elements of the same type.

Basic Arrays

from typing import List class User(BaseModel):    tags: List[str]         # Array(String)    scores: List[float]     # Array(Float64)    ids: List[int]          # Array(Int64)    flags: List[bool]       # Array(Boolean)

Arrays of Complex Types

Arrays can contain complex types like JSON or tuples.

from typing import List, Dict, Any, Tuple class Event(BaseModel):    metadata: List[Dict[str, Any]]     # Array(Json)    points: List[Tuple[float, float]]  # Array(Tuple)

Type Mapping Reference

ClickHouse TypeTypeScriptPython
Array(String)string[]List[str]
Array(Float64)number[]List[float]
Array(Int32)Int32[]List[int]
Array(Boolean)boolean[]List[bool]
Array(Json)Record<string, any>[]List[Dict[str, Any]]
Nested arrays

You can nest arrays to create multi-dimensional structures: number[][] maps to Array(Array(Float64)).

  • Overview
Build a New App
  • 5 Minute Quickstart
  • Browse Templates
  • Existing ClickHouse
Add to Existing App
  • Next.js
  • Fastify
Fundamentals
  • Moose Runtime
  • MooseDev MCP
  • Data Modeling
Moose Modules
  • Moose OLAP
  • Moose Streaming
  • Moose Workflows
  • Moose APIs & Web Apps
Deployment & Lifecycle
  • Moose Migrate
  • Moose Deploy
Reference
  • API Reference
  • Data Types
    • Strings
    • LowCardinality
    • Integers
    • Floats
    • Decimals
    • Booleans
    • Date & Time
    • Network
    • Arrays
    • Maps
    • Nested
    • Tuples
    • Enums
    • Geometry
    • JSON
    • Nullable
    • Aggregates
  • Table Engines
  • CLI
  • Configuration
  • Observability Metrics
  • Help
  • Release Notes
Contribution
  • Documentation
  • Framework