Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #1

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .vscode/configurationCache.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"buildTargets":[],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}
6 changes: 6 additions & 0 deletions .vscode/dryrun.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
make.exe --dry-run --always-make --keep-going --print-directory
make: Entering directory 'c:/Users/DKing/Documents/GitHub/snowflake_fivetran_vhol'
make: Leaving directory 'c:/Users/DKing/Documents/GitHub/snowflake_fivetran_vhol'

make: *** No targets specified and no makefile found. Stop.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"makefile.extensionOutputFolder": "./.vscode"
}
295 changes: 295 additions & 0 deletions .vscode/targets.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
make.exe all --print-data-base --no-builtin-variables --no-builtin-rules --question
make: *** No rule to make target 'all'. Stop.

# GNU Make 4.3
# Built for Windows32
# Copyright (C) 1988-2020 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.

# Make data base, printed on Thu Jul 14 14:22:38 2022

# Variables

# environment
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
# environment
SYSTEMDRIVE = C:
# environment
JAVA_HOME = C:\Users\DKing\AppData\Local\Programs\AdoptOpenJDK\
# environment
LC_ALL = C
# environment
USERPROFILE = C:\Users\DKing
# environment
VBOX_MSI_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\
# environment
LOCALAPPDATA = C:\Users\DKing\AppData\Local
# environment
VSCODE_CWD = C:\Users\DKing\AppData\Local\Programs\Microsoft VS Code
# environment
CHOCOLATEYINSTALL = C:\ProgramData\chocolatey
# environment
SYSTEMROOT = C:\WINDOWS
# environment
PROCESSOR_LEVEL = 6
# environment
PSMODULEPATH = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
# default
MAKE_COMMAND := C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe
# environment
USERDNSDOMAIN = USXPRESS.COM
# automatic
@D = $(patsubst %/,%,$(patsubst %\,%,$(dir $@)))
# environment
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_9960_JZBVRSXSOTOHSVIA
# environment
FPS_BROWSER_USER_PROFILE_STRING = Default
# environment
VSCODE_HANDLES_UNCAUGHT_ERRORS = true
# default
.VARIABLES :=
# automatic
%D = $(patsubst %/,%,$(patsubst %\,%,$(dir $%)))
# environment
M2_REPO = C:\Users\DKing\.m2\repository
# automatic
^D = $(patsubst %/,%,$(patsubst %\,%,$(dir $^)))
# automatic
%F = $(notdir $%)
# environment
VSCODE_CODE_CACHE_PATH = C:\Users\DKing\AppData\Roaming\Code\CachedData\b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
# environment
LANG = C
# default
.LOADED :=
# environment
TMP = C:\Users\DKing\AppData\Local\Temp
# default
.INCLUDE_DIRS = .
# environment
PROCESSOR_ARCHITEW6432 = AMD64
# makefile
MAKEFLAGS = pqrR
# environment
ONEDRIVE = C:\Users\DKing\OneDrive
# environment
INTELLIJ IDEA COMMUNITY EDITION = C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.3\bin;
# makefile
CURDIR := c:/Users/DKing/Documents/GitHub/snowflake_fivetran_vhol
# environment
SPARK_HOME = C:\Spark\spark-3.1.1-bin-hadoop2.7
# environment
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = 1
# automatic
*D = $(patsubst %/,%,$(patsubst %\,%,$(dir $*)))
# environment
PROGRAMFILES = C:\Program Files (x86)
# environment
MFLAGS = -pqrR
# default
.SHELLFLAGS := -c
# environment
COMMONPROGRAMW6432 = C:\Program Files\Common Files
# automatic
+D = $(patsubst %/,%,$(patsubst %\,%,$(dir $+)))
# makefile
MAKEFILE_LIST :=
# automatic
@F = $(notdir $@)
# environment
VSCODE_PID = 9960
# environment
HVR_HOME = C:\hvr\hvr_home
# automatic
?D = $(patsubst %/,%,$(patsubst %\,%,$(dir $?)))
# automatic
*F = $(notdir $*)
# automatic
<D = $(patsubst %/,%,$(patsubst %\,%,$(dir $<)))
# environment
HADOOP_HOME = C:\Hadoop
# environment
VSCODE_NLS_CONFIG = {"locale":"en-us","availableLanguages":{},"_languagePackSupport":true}
# default
MAKE_HOST := Windows32
# environment
PROGRAMDATA = C:\ProgramData
# default
SHELL := sh.exe
# environment
HOMEPATH = \Users\DKing
# default
MAKECMDGOALS := all
# environment
DRIVERDATA = C:\Windows\System32\Drivers\DriverData
# environment
COMSPEC = C:\WINDOWS\system32\cmd.exe
# environment
WINDIR = C:\WINDOWS
# environment
MAKELEVEL := 0
# default
MAKE = $(MAKE_COMMAND)
# environment
PATH = C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Users\DKing\AppData\Local\Programs\AdoptOpenJDK;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Pegasus TransTech\Quickview;C:\Program Files (x86)\Sennheiser\SoftphoneSDK\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft\Azure Functions Core Tools\;C:\Program Files\dotnet\;;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Kubernetes\Minikube;C:\Program Files\Amazon\AWSCLIV2\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\hvr\hvr_home\bin;C:\Users\DKing\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\DKing\AppData\Local\Programs\Python\Python310\;C:\Users\DKing\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\DKing\AppData\Local\Programs\Python\Python39\;C:\Users\DKing\AppData\Local\Programs\Python\Launcher\;C:\Users\DKing\AppData\Local\Programs\AdoptOpenJDK\bin;C:\Users\DKing\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\DKing\AppData\Local\Programs\Python\Python37\;c:\vslick\win;C:\Users\DKing\AppData\Local\Microsoft\WindowsApps;C:\Users\DKing\AppData\Local\Programs\Microsoft VS Code\bin;C:\apache-maven-3.6.2\bin;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.3\bin;;C:\Program Files\Azure Data Studio\bin;C:\Spark\spark-3.1.1-bin-hadoop2.7\bin;C:\Hadoop\bin;C:\Users\DKing\AppData\Local\Programs\AdoptOpenJDK\\bin;C:\Users\DKing\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\DKing\.dotnet\tools;C:\Program Files\Kubernetes;C:\Users\DKing\AppData\Local\GitHubDesktop\bin
# environment
COMPUTERNAME = USXCHT-LT31143A
# default
MAKEFILES :=
# environment
HVR_CONFIG = C:\hvr\hvr_config
# automatic
^F = $(notdir $^)
# environment
HVR_TMP = C:\hvr\hvr_tmp
# environment
PROMPT = $P$G
# environment
CHOCOLATEYLASTPATHUPDATE = 132659976288145389
# environment
LOGONSERVER = \\USXD2VMDC1
# environment
USERNAME = DKing
# environment
COMMONPROGRAMFILES = C:\Program Files (x86)\Common Files
# automatic
?F = $(notdir $?)
# environment
PROGRAMW6432 = C:\Program Files
# environment
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
# automatic
+F = $(notdir $+)
# environment
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
# environment
USERDOMAIN = USXENT
# 'override' directive
GNUMAKEFLAGS :=
# environment
OS = Windows_NT
# makefile
.DEFAULT_GOAL :=
# default
MAKE_VERSION := 4.3
# environment
PROGRAMFILES(X86) = C:\Program Files (x86)
# environment
UATDATA = C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
# environment
USERDOMAIN_ROAMINGPROFILE = USXENT
# environment
NUMBER_OF_PROCESSORS = 8
# environment
PUBLIC = C:\Users\Public
# environment
APPDATA = C:\Users\DKing\AppData\Roaming
# environment
HOMEDRIVE = C:
# environment
PROCESSOR_ARCHITECTURE = x86
# environment
VSCODE_AMD_ENTRYPOINT = vs/workbench/api/node/extensionHostProcess
# environment
COMMONPROGRAMFILES(X86) = C:\Program Files (x86)\Common Files
# environment
ELECTRON_RUN_AS_NODE = 1
# environment
TEMP = C:\Users\DKing\AppData\Local\Temp
# environment
VSCODE_IPC_HOOK = \\.\pipe\83b56ae441a2c3c7346707fc36ebba1f-1.69.1-main-sock
# default
.RECIPEPREFIX :=
# automatic
<F = $(notdir $<)
# default
SUFFIXES :=
# environment
ALLUSERSPROFILE = C:\ProgramData
# environment
SESSIONNAME = Console
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell nocomment grouped-target extra-prereqs archives jobserver output-sync load
# environment
PROCESSOR_REVISION = 8e0a
# environment
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
# variable set hash-table stats:
# Load=102/1024=10%, Rehash=0, Collisions=8/126=6%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# . (key c:/Users/DKing/Documents/GitHub/snowflake_fivetran_vhol, mtime 1657822956): 18 files, no impossibilities.

# 18 files, no impossibilities in 1 directories.

# Implicit Rules

# No implicit rules.

# Files

# Not a target:
Makefile:
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Failed to be updated.

# Not a target:
.DEFAULT:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

# Not a target:
all:
# Command line target.
# Implicit rule search has been done.
# File does not exist.
# File has not been updated.

# Not a target:
makefile:
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Failed to be updated.

# Not a target:
makefile.mak:
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Failed to be updated.

# Not a target:
GNUmakefile:
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Failed to be updated.

# files hash-table stats:
# Load=7/1024=1%, Rehash=0, Collisions=0/16=0%
# VPATH Search Paths

# No 'vpath' search paths.

# No general ('VPATH' variable) search path.

# strcache buffers: 1 (0) / strings = 25 / storage = 223 B / avg = 8 B
# current buf: size = 8174 B / used = 223 B / count = 25 / avg = 8 B

# strcache performance: lookups = 28 / hit rate = 10%
# hash-table stats:
# Load=25/8192=0%, Rehash=0, Collisions=0/28=0%
# Finished Make data base on Thu Jul 14 14:22:38 2022


88 changes: 88 additions & 0 deletions dbt_packages/dbt_date/.github/workflows/pr_to_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: pr_to_main

on:
pull_request:
branches:
- main
env:
DBT_PROFILES_DIR: ./
DBT_PROJECT_DIR: ./integration_tests

DBT_GOOGLE_PROJECT: ${{ secrets.DBT_GOOGLE_PROJECT }}
DBT_GOOGLE_BIGQUERY_DATASET: ${{ secrets.DBT_GOOGLE_BIGQUERY_DATASET }}

DBT_GOOGLE_BIGQUERY_KEYFILE: /tmp/.service-account.json

DBT_SNOWFLAKE_ACCOUNT: ${{ secrets.DBT_SNOWFLAKE_ACCOUNT }}
DBT_SNOWFLAKE_USER: ${{ secrets.DBT_SNOWFLAKE_USER }}
DBT_SNOWFLAKE_PASSWORD: ${{ secrets.DBT_SNOWFLAKE_PASSWORD }}
DBT_SNOWFLAKE_ROLE: ${{ secrets.DBT_SNOWFLAKE_ROLE }}
DBT_SNOWFLAKE_DATABASE: ${{ secrets.DBT_SNOWFLAKE_DATABASE }}
DBT_SNOWFLAKE_WAREHOUSE: ${{ secrets.DBT_SNOWFLAKE_WAREHOUSE }}
DBT_SNOWFLAKE_SCHEMA: ${{ secrets.DBT_SNOWFLAKE_SCHEMA }}

jobs:

pr_to_main:
name: pr_to_main
runs-on: ubuntu-latest
container: python:3.8
environment: dev

services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Python packages
run: |
python3 -m venv venv
. venv/bin/activate
pip install -U pip wheel
pip install dbt-core dbt-postgres dbt-bigquery dbt-snowflake

- name: Create GCP service account
run: 'echo "$KEYFILE" > $DBT_GOOGLE_BIGQUERY_KEYFILE'
shell: bash
env:
KEYFILE: ${{ secrets.DBT_GOOGLE_BIGQUERY_KEYFILE }}

- name: Install dbt dependencies
run: |
. venv/bin/activate
dbt deps --project-dir $DBT_PROJECT_DIR

- name: Integration Tests (Postgres)
if: ${{ env.ACT == false }}
run: |
. venv/bin/activate
dbt build -t postgres --project-dir $DBT_PROJECT_DIR

- name: Integration Tests (BigQuery)
if: ${{ env.ACT == false }}
run: |
. venv/bin/activate
dbt build -t bq --project-dir $DBT_PROJECT_DIR

- name: Integration Tests (Snowflake)
run: |
. venv/bin/activate
dbt build -t snowflake --project-dir $DBT_PROJECT_DIR

Loading