Title: Exception parsing query that casts ROW · Issue #1267 · JSQLParser/JSqlParser · GitHub
Open Graph Title: Exception parsing query that casts ROW · Issue #1267 · JSQLParser/JSqlParser
X Title: Exception parsing query that casts ROW · Issue #1267 · JSQLParser/JSqlParser
Description: We are using JSqlParser (version 4.1) to parse queries from Amazon's Athena service. Many queries include a cast to a formatted ROW. Here is a simple example of this: SELECT CAST(ROW(dataid, value, calcMark) AS ROW(datapointid CHAR, valu...
Open Graph Description: We are using JSqlParser (version 4.1) to parse queries from Amazon's Athena service. Many queries include a cast to a formatted ROW. Here is a simple example of this: SELECT CAST(ROW(dataid, value,...
X Description: We are using JSqlParser (version 4.1) to parse queries from Amazon's Athena service. Many queries include a cast to a formatted ROW. Here is a simple example of this: SELECT CAST(ROW(dataid, va...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/1267
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception parsing query that casts ROW","articleBody":"We are using JSqlParser (version 4.1) to parse queries from Amazon's Athena service. Many queries include a cast to a formatted ROW. Here is a simple example of this:\r\n\r\nSELECT CAST(ROW(dataid, value, calcMark) AS ROW(datapointid CHAR, value CHAR, calcMark CHAR)) AS datapoints\r\n\r\nThis throws the following exception:\r\n\r\ncom.morningstar.neti.sqlparse.SqlParseException: Failed to parse sql: 'SELECT CAST(ROW(dataid, value, calcMark) AS ROW(datapointid CHAR, value CHAR, calcMark CHAR)) AS datapoints'\r\nnet.sf.jsqlparser.JSQLParserException: Encountered unexpected token: \"ROW\" \"ROW\"\r\n at line 1, column 45.\r\n\r\nWas expecting one of:\r\n\r\n \"BINARY\"\r\n \"BIT\"\r\n \"CHAR\"\r\n \"CHARACTER\"\r\n \"DOUBLE\"\r\n \"INTERVAL\"\r\n \"JSON\"\r\n \"SET\"\r\n \"SIGNED\"\r\n \"UNSIGNED\"\r\n \"XML\"\r\n \u003cDT_ZONE>\r\n \u003cK_DATETIMELITERAL>\r\n \u003cK_DATE_LITERAL>\r\n \u003cS_IDENTIFIER>\r\n\r\n\r\nIs this currently supported by the parser? If not, could it be added?\r\n\r\nThanks.","author":{"url":"https://github.com/hdeyo","@type":"Person","name":"hdeyo"},"datePublished":"2021-07-14T13:53:23Z","url":"https://github.com/JSQLParser/JSqlParser/issues/1267"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2bc12f2e-4c76-4d02-282d-f6c6c37e1e97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A228:10A7CF:6A3D3B:8CA523:6AFBC9D7 |
| html-safe-nonce | 3072be3ed87873c6a47bf0511c015ee6f2afc18bf7f4c569f3efa51ac5211b72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjI4OjEwQTdDRjo2QTNEM0I6OENBNTIzOjZBRkJDOUQ3IiwidmlzaXRvcl9pZCI6Ijc2MDE3OTc5Mjc2MzQ5NzkyODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a51c845af2dffed066c99059fee2a23ac0383e5739a2323546d84d3f4240f3bc |
| hovercard-subject-tag | issue:944453361 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/1267/issue_layout |
| twitter:image | https://opengraph.githubassets.com/308833bb049c15c6f94ade1a755c480cd7dd3dcda6a5848312100395140d685c/JSQLParser/JSqlParser/issues/1267 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/308833bb049c15c6f94ade1a755c480cd7dd3dcda6a5848312100395140d685c/JSQLParser/JSqlParser/issues/1267 |
| og:image:alt | We are using JSqlParser (version 4.1) to parse queries from Amazon's Athena service. Many queries include a cast to a formatted ROW. Here is a simple example of this: SELECT CAST(ROW(dataid, value,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hdeyo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| go-import | github.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git |
| octolytics-dimension-user_id | 4643847 |
| octolytics-dimension-user_login | JSQLParser |
| octolytics-dimension-repository_id | 1944709 |
| octolytics-dimension-repository_nwo | JSQLParser/JSqlParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1944709 |
| octolytics-dimension-repository_network_root_nwo | JSQLParser/JSqlParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width