Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Data Agent Combines SQL Checks with Production Safeguards

AI summary

A Juejin author describes Data Agent’s SQL development workflow as combining model reasoning with system-level checks. It retrieves business definitions from a knowledge base, validates source-table fields with MaxCompute DESC, and asks structured questions when information remains unresolved. Debug runs use a development project for MaxCompute and a temporary database for ADB. Each SQL revision is preserved with a diff and rollback option, while pre-execution guards reject specified writes to production objects and OSS paths. The author also says that truncated DESC results can leave some fields requiring manual verification, and that all screenshots came from one real development session.

In-depth insight

The account shows a design in which factual verification, clarification, version management, and code-level production-write safeguards complement an AI model’s SQL generation.

数据开发 × AI 实践 · 一个游戏数据团队的桌面 AI 助手

通用大模型写 SQL,最常见的问题不是写不出来,而是写出来的不能上线:表名是编的、字段对不上、口径和看板不一致、漏掉分区条件导致全表扫描。这篇只讲 Data Agent 里的「SQL 开发」模块——它包含哪些能力、每个能力解决什么问题、交互怎么设计,以及背后是怎么实现的。文中所有截图都来自一次真实的开发过程。


01 这个模块要解决什么问题

数据开发同学提一个需求,通常要经历:翻知识库找源表 → 确认字段 → 定口径 → 写 SQL → 调试 → 改 → 交 review → 上调度。每一步都容易卡住:

环节卡点
找表、找字段表在哪个项目空间?字段叫 vroleid 还是 roeid?没有权威答案只能靠问人
定口径同一个「活跃用户」,三份文档三种写法
起表名命名规范写得很全,落地全靠记性
调试每次改动都要上 DataWorks 跑一遍才知道对不对
交 review评审时才被指出漏了分区条件、DDL 和 select 列数不一致
数据对不对SQL 跑通 ≠ 数据正确,多表 join 膨胀、丢数只有出事才发现

#Data Agent#MaxCompute#DataWorks#ADB

Original · 19 min readRead the original
Group chat

No comments yet. Start the conversation.