Dl/DataLocation: Difference between revisions

From stonehomewiki
Jump to navigationJump to search
(Created page with "<p> Dl Data Lake Knowledge Center | Dl/models/DataLocation</p> = Introduction = <div class="toccolours mw-collapsible mw-collapsed expandable"> <div class="mw-collapsible-preview"></div> <div class="mw-collapsible-content"> </div> </div> <p></p>")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<p> [[Dl Data Lake Knowledge Center]] | [[Dl/models/DataLocation]]</p>
<p> [[dl/home|Data Lake Knowledge Center]] | [[Dl/Models|Models]]</p>


= Introduction =
= Introduction =
<div class="toccolours mw-collapsible mw-collapsed expandable">
<div class="toccolours mw-collapsible mw-collapsed expandable">
<div class="mw-collapsible-preview"></div>
<div class="mw-collapsible-preview">Definition</div>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
<big><b>A DataLocation object captures the location of the data and the format of the data.</b></big>
<b>Fields</b>
<pre><nowiki>
id:  UUID
    Primary key
url: str
    Specifies the location of the data.
    For example: "s3://mubucket/stock_quotes/2023-08-20.jsonl" is a valid url, it represent a data object located in AWS S3, bucket name is mubucket, object key is stock_quotes/2023-08-20.jsonl
format: str
    A string represent the format of the data, for example, "JSONL", "CSV", "PARQUET", etc.
</nowiki></pre>
<b>Examples</b>:
<pre><nowiki>
{
    id: "617b2e86-9698-4b99-8956-57ce99d8de39",
    url: "s3://mubucket/stock_quotes/2023-08-20.jsonl"
    format: "JSONL"
}
</nowiki></pre>
</div>
</div>
<p></p>
= Considerations =
<div class="toccolours mw-collapsible mw-collapsed expandable">
<div class="mw-collapsible-preview">url should have enough information to locate the data</div>
<div class="mw-collapsible-content">
url field should have enough information for user to locate the data. For example, <code>"s3://mubucket/stock_quotes/2023-08-20.jsonl"</code> is a good url if your datalake only lives one AWS region. If your datalake crosses multiple AWS regions, you should put region ID in the url so you know from which region the bucket belongs to.
</div>
</div>
</div>
</div>
<p></p>
<p></p>

Latest revision as of 04:32, 23 August 2023

Data Lake Knowledge Center | Models

Introduction

Considerations