test-json-sql-join

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Test Join Primitive

测试基础连接操作

Self-contained: Creates test data internally
Input:
  • Creates $papers: A, B, C, D
  • Creates $authors: A (Alice), B (Bob), E (Eve)
Operation: Inner join on id field
Expected Output: $joined collection with 2 items (A and B have matches)
  • Paper A + Author Alice
  • Paper B + Author Bob
自包含: 在内部创建测试数据
输入:
  • 创建 $papers:A、B、C、D
  • 创建 $authors:A(Alice)、B(Bob)、E(Eve)
操作: 基于id字段执行INNER JOIN(内连接)
预期输出: 包含2条数据的$joined集合(A和B存在匹配项)
  • 论文A + 作者Alice
  • 论文B + 作者Bob