update
This commit is contained in:
		
							parent
							
								
									1604aa8c9c
								
							
						
					
					
						commit
						f1faad9777
					
				| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					#!bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					push:
 | 
				
			||||||
 | 
						git add . && git commit -a -m "update" && git push
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					run:
 | 
				
			||||||
 | 
						dbt deps --profiles-dir=. --project-dir=.
 | 
				
			||||||
 | 
					    #dbt run --profiles-dir=. --project-dir=. --full-refresh
 | 
				
			||||||
 | 
						dbt run --profiles-dir=. --project-dir=. --full-refresh --select tracking_product_shares
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,8 @@ select
 | 
				
			||||||
    {{ adapter.quote('user') }} AS seller_id,
 | 
					    {{ adapter.quote('user') }} AS seller_id,
 | 
				
			||||||
    products AS product_id,
 | 
					    products AS product_id,
 | 
				
			||||||
    {{ adapter.quote('options') }}::json->>'action' AS options_action,
 | 
					    {{ adapter.quote('options') }}::json->>'action' AS options_action,
 | 
				
			||||||
    createdat::timestamp AS created_at,
 | 
					    to_timestamp(createdat, 'YYYY-MM-DDTHH:MI:SSZ') AS created_at,
 | 
				
			||||||
 | 
					    -- createdat::timestamp AS created_at,
 | 
				
			||||||
    _airbyte_ab_id,
 | 
					    _airbyte_ab_id,
 | 
				
			||||||
    _airbyte_emitted_at,
 | 
					    _airbyte_emitted_at,
 | 
				
			||||||
    {{ current_timestamp() }} as _airbyte_normalized_at,
 | 
					    {{ current_timestamp() }} as _airbyte_normalized_at,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue