This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"_id": "5ab556035819188e4e0f11ed", | |
"index": 0, | |
"guid": "96733393-88fd-4a56-a566-e83bd36ea8a2", | |
"isActive": false, | |
"balance": "$1,612.00", | |
"picture": "http://placehold.it/32x32", | |
"age": 27, | |
"eyeColor": "blue", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "my doc", | |
"foo": { | |
"bar": "baz", | |
"quux": "revlos", | |
"level1" : { | |
"l2string": "l2val", | |
"l2struct": { | |
"level3": "l3val" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyarrow import flight | |
import base64,time,pandas | |
class HttpDremioClientAuthHandler(flight.ClientAuthHandler): | |
def __init__(self, username, password): | |
super().__init__() | |
self.username = bytes(username) | |
self.password = bytes(password) | |
self.token = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
RUN yum install -y python3 python3-devel python3-pip unixODBC unixODBC-devel python3-setuptools gcc gcc-c++ https://download.dremio.com/odbc-driver/dremio-odbc-LATEST.x86_64.rpm && \ | |
pip3 install apache-superset sqlalchemy_dremio && \ | |
export LC_ALL=en_US.UTF-8 && \ | |
superset db upgrade && \ | |
superset init && \ | |
export FLASK_APP=superset && \ | |
flask fab create-admin --username admin --firstname admin --lastname admin --email admin@admin --password admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires JDK 1.8 | |
// Run it with: | |
// javac Main.java && java -cp .:dremio-jdbc-driver-20.0.0-202201050826310141-8cc7162b.jar Main | |
// If the output in terminal shows the following then the test is successful. | |
// Printing the result | |
// ------------------- | |
// User: dremio | |
// ------------------- | |
import java.sql.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data.Odbc; | |
class Program | |
{ | |
static void Main() | |
{ | |
string connectionString = "DRIVER={Arrow Flight SQL ODBC Driver};host=localhost;UID=dremio;PWD=dremio123;PORT=32010;UseEncryption=false;DisableHostVerification=1;DisableCertificateVerification=1;HandshakeTimeout=100;ROUTING_TAG=testing"; | |
using (OdbcConnection connection = new OdbcConnection(connectionString)) | |
{ |
OlderNewer