Category "snowflake-cloud-data-platform"

How to pull out the word I need in a column in Snowflake?

So I have a column in a table as follows: TBL JFK 257: Gremlin vs Ronald 2 JFK 271: Walter vs Hamburglar JFK 272: Pizza vs Papa 1 JFK 272: Pizza vs Papa 2 JFK 2

Custom Sink to Snowflake using Snowflake JDBC driver is very slow

I am using Spring Cloud Data Flow to create a custom stream to load data into Snowflake. I have written a custom sink to load data into Snowflake using Snowflak

Duplicate Primary Key while doing latteral flattening in SNOWFLAKE

I am kind a new with working with arrays in SNOWFLAKE database. I am trying to load data into dimension tables in SNOWFLAKE database using merge statement where

alternative for alter session set week_start in snowflake

I need to set week start from sunday as default in snowflake i used alter session set WEEK_START = 7; when querying in snowflake worksheet it works fine but wh

How to convert a hash string to an integer in Snowflake?

I'm trying to get a hash of a decimal value and convert it to an integer. But the query results in the following error: Numeric value 'b902cc4550838229a710bfec4

SnowFlake & PowerBI "native queries aren't support by this value"

Quick Note, I have reviewed these threads and they do not fix my issue: ( Outdated info, see documentation below ) Access Snowflake query results through PowerB

How do I return single orderid having same rank?

I have the following output: Orderid Time State Order_rank 1 10.15 mfr 1 1 10.15 delivered 1 2 12.10 picked 1 2 12.10 mfr 1 Here I have ranked the order ids w

Snowflake SQL Compilation Error: View Definition Declared but view Query Produced

I've just gotten a new query error that I haven't changed anything to. Any advice on what to do? Thanks SQL compilation error: View definition for '**********'

Snowflake query_history gets reset after warehouse suspension

I am using the following query to retrieve query history from my Snowflake database. SELECT * FROM table(MY_DATABASE.information_schema.query_history( end_tim

AUTOINCREMENT primary key for snowflake bulk loading

I would like to upload data into snowflake table. The snowflake table has a primary key field with AUTOINCREMENT. When I tried to upload data into snowflake wi

Snowflake JSON with foreign language to tabular format dynamically

I read through snowflake documentation and the web and found only one solution to my problem by https://stackoverflow.com/users/12756381/greg-pavlik which can b

How to get the total byte size of schemas & databases in Snowflake

I love how the SHOW TABLES query return the rows and the bytes for each table listed, but unfortunately, that's not the case for the SHOW SCHEMAS query. What's

Max tries exceeded error while loading data to snowflake via snowsql

I am trying to load a csv file from my windows system to snowflake internal stage using snowsql. Command : PUT file://C:\Test_Data\Orders_1.csv @CSVSTAGE1; Erro

How to connect to API and load the data directly in Snowflake table?

I was wondering if Snowflake can directly connect to API and load the data into Snowflake Schema tables ? If yes, can you please guide me the process ? I am new

Staging xml in snowflake

I am trying to stage xml data from S3 into snowflake. I have successfully created the stage, while querying the data I am getting below given error, upon checki

Is there a best way to get data from snowflake to s3

Is there a best way to get data from snowflake to s3. ? the data snowflake shows will be in s3, but we don't have access to that bucket. And we only need to ge

SQL: Use RegEx to return multiple substrings of a specified string in column

I am querying metadata on Snowflake which contains a column of queries: select query_name from metadata query_name SELECT * FROM SYSIBM.SQLCOLUMNS SELECT * FR

DELETE FROM + LEFT JOIN SNOWFLAKE

I'm trying to delete rows from table using delete. delete a from "table1" as a LEFT JOIN "table2" AS b on a."x" = b."x" where b."X" = 'X' but everything I ge

Read different versions of Staged files in aws S3

I have a use case where I have different versions of files in the AWS S3 Stage area. Now I want to read a specific version of these files and load them in snowf

How to export Snowflake Web UI Worksheet SQL to file

Classic Snowflake Web UI and the new Snowsight are great at importing sql from a file but neither allows you to export sql to a file. Is there a workaround?