Type

SQL

Spark SQL - Struct Type Operations

Struct types represent complex data structures within a single column, similar to objects in programming languages or nested JSON documents. Unlike primitive types, structs contain multiple named…

Read more →
Scala

Scala - Type Inference

Scala’s type inference system operates through a constraint-based algorithm that analyzes expressions and statements to determine types without explicit annotations. Unlike dynamically typed…

Read more →
Scala

Scala - Type Casting/Conversion

Scala handles numeric conversions through a combination of automatic widening and explicit narrowing. Widening conversions (smaller to larger types) happen implicitly, while narrowing requires…

Read more →
Python

Python - Type Hints / Annotations

• Type hints in Python are optional annotations that specify expected types for variables, function parameters, and return values—they don’t enforce runtime type checking but enable static analysis…

Read more →
Engineering

Python - None Type Explained

Python’s None is a singleton object that represents the intentional absence of a value. It’s not zero, it’s not an empty string, and it’s not False—it’s the explicit statement that ’there is…

Read more →
Engineering

How to Use Map Type in PySpark

PySpark’s MapType is a complex data type that stores key-value pairs within a single column. Think of it as embedding a dictionary directly into your DataFrame schema. This becomes invaluable when…

Read more →
Go

Go Type Switches: Dynamic Type Dispatch

Go’s type system walks a fine line between static typing and runtime flexibility. When you accept an interface{} or any parameter, you’re telling the compiler ‘I’ll handle whatever type comes…

Read more →
Go

Go Rune Type: Unicode Characters

In Go, a rune is an alias for int32 that represents a Unicode code point. While this might sound academic, it’s critical for writing software that handles text correctly in our international,…

Read more →
Go

Go Generics: Type Parameters in Go

Go 1.18 introduced type parameters, commonly known as generics, ending years of debate about whether Go needed them. Before generics, developers faced an uncomfortable choice: write duplicate code…

Read more →