Skip to content

feat: Add RAW_JSON alias to the custom FlinkJsonType#2224

Merged
ferenc-csaky merged 2 commits into
mainfrom
feat/json-type-alias
Jul 21, 2026
Merged

feat: Add RAW_JSON alias to the custom FlinkJsonType#2224
ferenc-csaky merged 2 commits into
mainfrom
feat/json-type-alias

Conversation

@ferenc-csaky

@ferenc-csaky ferenc-csaky commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Key Changes

  • Added RAW_JSON type alias so it's not necessary to use the complete raw representation as col type (see below)
    • It only gets resolved in CREATE TABLE ... statements, after the statement got parsed into an SqlNode
  • Wired in the alias resolution to Sqrl2FlinkSQLTranslator
  • Updated GraphQL -> JSON type converter to not assign any specific JSON-type to the JSON GraphQL scalar, so it can represent any kind of JSON
  • Updated jwt-authorized usecase to use RAW_JSON in a mutation table
RAW('com.datasqrl.flinkrunner.stdlib.json.FlinkJsonType', 'AERjb20uZGF0YXNxcmwuZmxpbmtydW5uZXIuc3RkbGliLmpzb24uRmxpbmtKc29uVHlwZVNlcmlhbGl6ZXJTbmFwc2hvdAAAAAM=')

Important

The current CI failures are expected. This change requires DataSQRL/flink-sql-runner#368 to be merged.

@ferenc-csaky
ferenc-csaky force-pushed the feat/json-type-alias branch from 6bfd036 to 8e2fa42 Compare July 20, 2026 20:45
@ferenc-csaky ferenc-csaky added this to the 0.10.9 milestone Jul 21, 2026
@ferenc-csaky ferenc-csaky added the enhancement New feature or request label Jul 21, 2026
@ferenc-csaky
ferenc-csaky merged commit dc1d04c into main Jul 21, 2026
15 of 18 checks passed
@ferenc-csaky
ferenc-csaky deleted the feat/json-type-alias branch July 21, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants