Swapping Keys and Values Between JSON Objects in Java
JSON Structural Transformation: Key and Value Swapping Between Objects
A common requirement when integrating systems is to reshape JSON payloads—renaming keys, copying values, or populating fields with dynamic data such as timestamps. A mapping‑based approach can handle these transformations declaratively. This article demonstrates how to swap ...
Posted on Fri, 11 Sep 2026 16:41:35 +0000 by prometheos
Hive Window Functions for Data Transformation
Row to Column Conversion
Problem Analysis
Given the following employee data:
1,PK,RD,1
2,XIAOAI,RD,1
3,XIAOHONG,RD,2
4,XIAOZHANG,QA,1
5,XIAOLI,QA,2
6,XIAOFANG,QA,2
Group by department and gender to get:
QA,1 XIAOZHANG
QA,2 XIAOLI|XIAOFANG
RD,1 PK|XIAOAI
RD,2 XIAOHONG
Required Functions
concat: String concatenation
concat_ws: Stri ...
Posted on Wed, 02 Sep 2026 16:10:10 +0000 by thefury
Exploring Advanced LINQ Operations in C#
LINQ (Language Integrated Query) provides a unified model for querying data across diverse sources. It integrates directly into C# without introducing a separate language.
LINQ can be categorized functionally into LINQ to Objects for in-memory collections and LINQ to Providers for custom data sources like XML or JSON. Syntactically, it offers S ...
Posted on Sun, 10 May 2026 14:07:00 +0000 by moboter
Implementing UDTF Functions in Alibaba DataWorks for JSON Data Processing
Processing MongoDB JSON Data with Custom UDTF
When working with nested JSON structures from MongoDB in DataWorks, a User-Defined Table Function (UDTF) can transform complex hierarchical data into flatttened relational format. Consider this JSON structure containing premise and point details:
{
"id": 0,
"premiseDetails": ...
Posted on Sun, 10 May 2026 06:29:39 +0000 by SharkBait