describe_snowflake_table
curl --request POST \
--url https://api.rippit.com/v1/describe_snowflake_table \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_id": "<string>",
"database": "<string>",
"schema_name": "<string>",
"table": "<string>"
}
'import requests
url = "https://api.rippit.com/v1/describe_snowflake_table"
payload = {
"connection_id": "<string>",
"database": "<string>",
"schema_name": "<string>",
"table": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connection_id: '<string>',
database: '<string>',
schema_name: '<string>',
table: '<string>'
})
};
fetch('https://api.rippit.com/v1/describe_snowflake_table', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rippit.com/v1/describe_snowflake_table",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connection_id' => '<string>',
'database' => '<string>',
'schema_name' => '<string>',
'table' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rippit.com/v1/describe_snowflake_table"
payload := strings.NewReader("{\n \"connection_id\": \"<string>\",\n \"database\": \"<string>\",\n \"schema_name\": \"<string>\",\n \"table\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rippit.com/v1/describe_snowflake_table")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_id\": \"<string>\",\n \"database\": \"<string>\",\n \"schema_name\": \"<string>\",\n \"table\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rippit.com/v1/describe_snowflake_table")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connection_id\": \"<string>\",\n \"database\": \"<string>\",\n \"schema_name\": \"<string>\",\n \"table\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySnowflake
describe_snowflake_table
Describe Snowflake table
Read the columns of a table in the customer’s own Snowflake account, before importing it. Not for Rippit tables — use describe_table for those.
How to use:
- Pick the import’s
primary_keysandupdated_at_columnfrom these columns. Snowflake rarely declares primary keys, so an emptyprimary_keysis normal: choose the column(s) that uniquely identify a row. merge_keysis the key the pipeline itself loads on, derived from the last 7 days of successful MERGE, DELETE and UPDATE statements in Snowflake’s query history. It’s the strongest evidence forprimary_keys. If the import rejects it for duplicates, report that as an upstream data bug and show the user the stats; don’t swap in other columns. It’s empty when no load matched or the role can’t read query history.merge_updated_atis the bestupdated_at_columnwhen it comes from that same query history: the column in the pipeline’s own incremental> (SELECT MAX(col) ...)filter. Without one, it’s a guess: the only timestamp column named like updated, modified or loaded, or an ETL tool’s sync column such as_fivetran_syncedor_airbyte_extracted_at.- Workspace admins only; anyone else gets a 403 on every Snowflake call, so don’t retry.
describe_snowflake_table
curl --request POST \
--url https://api.rippit.com/v1/describe_snowflake_table \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_id": "<string>",
"database": "<string>",
"schema_name": "<string>",
"table": "<string>"
}
'import requests
url = "https://api.rippit.com/v1/describe_snowflake_table"
payload = {
"connection_id": "<string>",
"database": "<string>",
"schema_name": "<string>",
"table": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connection_id: '<string>',
database: '<string>',
schema_name: '<string>',
table: '<string>'
})
};
fetch('https://api.rippit.com/v1/describe_snowflake_table', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rippit.com/v1/describe_snowflake_table",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connection_id' => '<string>',
'database' => '<string>',
'schema_name' => '<string>',
'table' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rippit.com/v1/describe_snowflake_table"
payload := strings.NewReader("{\n \"connection_id\": \"<string>\",\n \"database\": \"<string>\",\n \"schema_name\": \"<string>\",\n \"table\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rippit.com/v1/describe_snowflake_table")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_id\": \"<string>\",\n \"database\": \"<string>\",\n \"schema_name\": \"<string>\",\n \"table\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rippit.com/v1/describe_snowflake_table")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connection_id\": \"<string>\",\n \"database\": \"<string>\",\n \"schema_name\": \"<string>\",\n \"table\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Snowflake connection id from list_snowflake_connections.
Minimum string length:
1Snowflake database, exactly as Snowflake lists it.
Required string length:
1 - 256Snowflake schema, exactly as Snowflake lists it.
Required string length:
1 - 256Snowflake table, exactly as Snowflake lists it.
Required string length:
1 - 256Response
200
Tool result.
Was this page helpful?