blob: fbc60831b3f8bab6e0ca898ccf644610ac69c4b8 [file] [log] [blame]
{"version":3,"sources":["webpack:///./src/pages/docs/Connecting to Databases/presto.mdx"],"names":["_frontmatter","layoutProps","MDXLayout","DefaultLayout","MDXContent","components","props","mdxType","parentName","isMDXComponent"],"mappings":"wPAQaA,G,UAAe,S,mOAC5B,IAAMC,EAAc,CAClBD,gBAEIE,EAAYC,IACH,SAASC,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGC,EACF,8BACD,OAAO,YAACJ,EAAD,eAAeD,EAAiBK,EAAhC,CAAuCD,WAAYA,EAAYE,QAAQ,cAG5E,iBAAQ,CACN,GAAM,UADR,UAGA,4BAAW,6BAAGC,WAAW,KAAQ,CAC7B,KAAQ,qCADD,UAAX,4EAGA,gFACA,uBAAK,gCAAMA,WAAW,OAAU,IAA3B,4CAEL,yEACA,uBAAK,gCAAMA,WAAW,OAAU,IAA3B,kEAEL,0EACA,uBAAK,gCAAMA,WAAW,OAAU,IAA3B,yEAEL,4NAEA,uBAAK,gCAAMA,WAAW,OAAU,IAA3B,yC,iOAQTJ,EAAWK,gBAAiB","file":"component---src-pages-docs-connecting-to-databases-presto-mdx-c6bee004f52e18857535.js","sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\n\nimport DefaultLayout from \"/home/runner/work/superset/superset/docs/node_modules/gatsby-theme-docz/src/base/Layout.js\";\nexport const _frontmatter = {};\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n\n\n <h2 {...{\n \"id\": \"presto\"\n }}>{`Presto`}</h2>\n <p>{`The `}<a parentName=\"p\" {...{\n \"href\": \"https://pypi.org/project/PyHive/\"\n }}>{`pyhive`}</a>{` library is the recommended way to connect to Presto through SQLAlchemy.`}</p>\n <p>{`The expected connection string is formatted as follows:`}</p>\n <pre><code parentName=\"pre\" {...{}}>{`presto://{hostname}:{port}/{database}\n`}</code></pre>\n <p>{`You can pass in a username and password as well:`}</p>\n <pre><code parentName=\"pre\" {...{}}>{`presto://{username}:{password}@{hostname}:{port}/{database}\n`}</code></pre>\n <p>{`Here is an example connection string with values:`}</p>\n <pre><code parentName=\"pre\" {...{}}>{`presto://datascientist:securepassword@presto.example.com:8080/hive\n`}</code></pre>\n <p>{`By default Superset assumes the most recent version of Presto is being used when querying the\ndatasource. If you’re using an older version of Presto, you can configure it in the extra parameter:`}</p>\n <pre><code parentName=\"pre\" {...{}}>{`{\n \"version\": \"0.123\"\n}\n`}</code></pre>\n\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;\n "],"sourceRoot":""}