# Understanding DFS

Source: https://userguide.qualytics.io/source-datastore/datastore/deep-dive/dfs/

## What is DFS?

A **Distributed File System (DFS)** is a storage architecture that allows data to be stored across multiple machines or locations, while providing access to it as if it were on a single local system. In the context of modern cloud platforms, DFS encompasses cloud object storage services like **Amazon S3**, **Azure Data Lake Storage**, and **Google Cloud Storage** - which store data as objects (files) organized in buckets and folders, supporting formats like Parquet, AVRO, CSV, and JSON.

## How DFS Works in Qualytics

Qualytics uses DFS connectors to connect to cloud object storage and distributed file systems. When you add a DFS datastore, Qualytics:

1. **Establishes a connection** to your storage platform using credentials (access keys, service accounts, service principals, or connection strings).
2. **Walks the directory tree** during the Sync operation - reading files with supported extensions and creating containers based on file metadata and naming patterns.
3. **Reads data** using native cloud connectors for optimized, parallel file reads across partitions.
4. **Writes enrichment output** to the linked destination, which can use a different connector. All DFS connectors support enrichment datastores, using a dedicated writable storage path for the output.

> **Info: Connections and Security**
>
> For details on connection configuration, authentication methods (Shared Key, Service Principal, IAM roles), and secrets management, see the [Connection](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/) documentation.

### Data Organization

In DFS datastores, data is organized as:

- **Containers**: Files in a folder that share a common schema. Qualytics automatically groups files with similar naming patterns into a single **globbed container** (e.g., `orders_*.csv`). This grouping process is called [Filename Globbing](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/filename-globbing/) and treats each file as a partition of the same logical dataset.
- **Fields**: Columns within each file, detected automatically based on the file format and schema.
- **Records**: Rows of data within each file, analyzed during Profile and Scan operations.

Each container also records the file format Sync detected, such as Parquet, Delta, or CSV. The format appears in a **File Format** row with the container's other details, in the footer of the datastore tree and in the details shown on the container's breadcrumb.

> **Info: Containers**
>
> For a detailed understanding of how Qualytics manages containers in DFS datastores, see the [Containers Overview](https://userguide.qualytics.io/container/overview/) documentation.

### Field Type Detection

Sync creates the file patterns but no fields. When a file pattern is profiled, Qualytics discovers its fields and detects their types based on the file format:

- **Schema-aware formats** (Parquet, AVRO, ORC, Delta, Iceberg) - Field types are read directly from the file's embedded schema (shown as **Declared Type** in the field overview). The file pattern setting **Infer the data type for each field and cast it appropriately** is off by default for these formats.
- **Schema-less formats** (CSV, JSON) - Qualytics uses **weighted histogram analysis** to detect the types of text fields from their values, identifying integers, decimals, dates, timestamps, and text. The file pattern setting **Infer the data type for each field and cast it appropriately** is on by default for these formats. Turning it off keeps the types as the file loads them. When a detected type differs from the loaded one (for example, a CSV column that holds dates), the field overview shows it as **Detected Type**. Values that JSON already types, such as numbers and booleans, show **Declared Type**. Field types cannot be changed on a single field.

### Bulk Creation

DFS datastores have no catalog/schema hierarchy, so bulk creation works with root paths instead. In the Add Datastore form, selecting several paths in **Root Path** creates one datastore per path. Through the API, provide a list of `root_paths` in the bulk creation request. Each root path creates a separate DFS datastore. See the [Datastore API](https://userguide.qualytics.io/source-datastore/datastore/api/#multi-schema-creation) for details.

## Getting Started

- **Add with New Connection**

  Create a new DFS datastore by setting up a new connection from scratch.

  [New Connection](https://userguide.qualytics.io/source-datastore/datastore/how-tos/add-new-source-datastore/)
- **Add with Existing Connection**

  Create a new DFS datastore by reusing credentials from an existing connection.

  [Existing Connection](https://userguide.qualytics.io/source-datastore/datastore/how-tos/existing-connection/)
- **Available DFS Connectors**

  Browse the full list of supported DFS connectors.

  [View Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/)
- **Connections**

  Configure connection details, authentication, and secrets management.

  [Connections](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/)
- **Supported File Formats**

  Parquet, AVRO, CSV, JSON, Delta, Iceberg, ORC, and more.

  [File Formats](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-file-formats/)
- **Filename Globbing**

  How files are grouped into containers and best practices for organizing your data.

  [Globbing](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/filename-globbing/)

## Available Operations

Once a DFS datastore is added, you can run the following operations:

| Operation | Description |
| --- | --- |
| [Sync](https://userguide.qualytics.io/operations/sync/sync/) | Walks the directory tree, reads files with supported extensions, and creates containers based on file metadata and naming patterns. Detects new, changed, or removed files incrementally. |
| [Profile](https://userguide.qualytics.io/operations/profile/profile/) | Analyzes records across containers to compute statistics, detect data patterns, and automatically infer quality checks. |
| [Scan](https://userguide.qualytics.io/operations/scan/getting-started/) | Executes quality checks against the data, measures data quality metrics, and detects anomalies at the record and schema levels. |
| [External Scan](https://userguide.qualytics.io/operations/external-scan/external-scan/) | Runs scan operations using externally provided data files. |

> **Tip**
>
> The recommended sequence is **Sync → Profile → Scan**. This cycle is repeatable - as your data evolves, re-running these operations keeps your quality checks and anomaly detection up to date.

---

## See Also

- **Native Connectors**

  How Qualytics reads a platform's own storage or API without its query engine.

  [Native Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/native/)
- **Supported File Formats**

  The file formats DFS datastores read, including compressed variants.

  [Supported File Formats](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-file-formats/)
- **Filename Globbing**

  How DFS datastores group files with similar names into one container.

  [Filename Globbing](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/filename-globbing/)
- **HashiCorp Vault**

  Pull connection credentials from a secrets manager instead of typing them in.

  [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/)
- **Examples**

  Real scenarios, from onboarding a warehouse to protecting a busy database.

  [Examples](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/examples/)
- **Best Practices**

  Recommendations for scoping datastores, sharing connections, and keeping access tight.

  [Best Practices](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/best-practices/)
- **Permissions**

  The role and team permission each datastore action needs.

  [Permissions](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/permissions/)
- **How It Works**

  How a datastore maps to your storage, the layers behind it, the lifecycle, and the Timeline.

  [How It Works](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/how-it-works/)
- **Connection**

  How a connection holds the credentials that one or more datastores share.

  [Connection](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/)
- **Multiple-Schema**

  Create one datastore per schema or folder from a single connection.

  [Multiple-Schema](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/)
- **Supported Connectors**

  Every connector by family, with its enrichment support and multi-schema fields.

  [Supported Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/supported-connectors/)
- **JDBC Connectors**

  How Qualytics reads relational databases and warehouses through JDBC.

  [JDBC Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/jdbc/)

*Last updated: November 16, 2026.*
