Author: Tammy Hale

Implement a Serving Layer with a Star Schema – The Storage of Data-1Implement a Serving Layer with a Star Schema – The Storage of Data-1

FIGURE 4.35 Serving layer using star schema distribution types FIGURE 4.36 Serving layer using star schema integration dataset COPY INTO [brainwaves].[DimMODE]FROM ‘https://.blob.core.windows.net/brainjammer/Tables/MODE.csv’ WITH ( FILE_TYPE=’CSV’,FIRSTROW = 2)GO COPY INTO [brainwaves].[DimSCENARIO] [...]

Implement a Partition Strategy for Analytical Workloads – The Storage of DataImplement a Partition Strategy for Analytical Workloads – The Storage of Data

When you begin to brainstorm the storage of data for an analytical workload, terms such as hybrid transaction/analytical processing (HTAP) and online analytical processing (OLAP) might come to mind. Both [...]

Implement Efficient File and Folder Structures – The Storage of DataImplement Efficient File and Folder Structures – The Storage of Data

df = spark.read.load(‘abfss://@.dfs.core.windows.net/in-path/file.csv’, df.write.mode(“overwrite”) \ df = spark.read.load(‘abfss://@.dfs.core.windows.net/out-path/file.parquet’, print(df.count()) from pyspark.sql.functions import year, month, col df = spark.read \ .load(‘abfss://@.dfs.core.windows.net/out-path/file.parquet’, format=’parquet’, header=True) df_year_month_day = (df.withColumn(“year”, year(col(“SESSION_DATETIME”)))) \ .withColumn(“month”, month(col(“SESSION_DATETIME”))) from [...]

Azure Synapse Analytics Data Hub Data Flow – The Storage of DataAzure Synapse Analytics Data Hub Data Flow – The Storage of Data

DROP TABLE brainwaves.DimELECTRODE 2. Create an SCD table, and then execute the following SQL script, which is located in the folder Chapter04/Ch04Ex09 on GitHub at https://github.com/benperk/ADE and named createSlowlyChangingDimensionTable.sql:  CREATE [...]

Build External Tables on a Serverless SQL Pool – The Storage of DataBuild External Tables on a Serverless SQL Pool – The Storage of Data

COLLATE Latin1_General_100_BIN2_UTF8 WITH (LOCATION = ‘abfss://@.dfs.core.windows.net’) WITH (FORMAT_TYPE = PARQUET) ([Timestamp] NVARCHAR(50),[AF3theta] NVARCHAR(50),[AF3alpha] NVARCHAR(50),[AF3betaL] NVARCHAR(50),…) WITH(LOCATION = ‘EMEA/brainjammer/out/2022/04/03//.parquet/*’,DATA_SOURCE = SampleBrainwavesSource,FILE_FORMAT = SampleBrainwavesParquet) FIGURE 4.33 Building an external table You might [...]