Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
97 views

I'm using jOOQ with PostgreSQL and want to execute a query with an EXPLAIN (ANALYZE, FORMAT JSON) prefix. I set the parser settings to ignore comments: Settings settings = new Settings() ...
Raoua KHATERCHI's user avatar
0 votes
1 answer
253 views

I have been trying to create a python script that will parse some pretty complex SQL and return a dataframe of all of the columns, tables, and databases being queried as well as section indicators of ...
WannabeDev's user avatar
1 vote
0 answers
67 views

I tried to parse SQL queries using Microsoft.SqlServer.Management.SqlParser librairies. I didn't find any complete (or updated topics) documentation about it. So far, here's my code: Imports Microsoft....
8oris's user avatar
  • 475
-1 votes
1 answer
225 views

while setting up Apache-Superset (I installed Superset on Ubuntu 22.04 over pypi, for the connector im using pinotdb, to connect Superset to a apache-pinot db.) i encountered following error after ...
Zendoc's user avatar
  • 11
0 votes
0 answers
55 views

i was writing a sql parser, i use cmake configure my project. source code directories are as follows: ├── build ├── CMakeLists.txt // root CMakeLists.txt └── src ├── CMakeLists.txt //...
Xiaobo Jia's user avatar
0 votes
0 answers
68 views

I'm working on a project where I need to parse SQL queries and determine if the final SQL output will be ordered or not. I am checking based on the presence of an ORDER BY clause. Here's what I've ...
Heisen's user avatar
  • 43
0 votes
1 answer
139 views

Hi I am using Microsoft ScriptDOM parser (Microsoft.SqlServer.TransactSql.ScriptDom) to parse the SQL queries. For a decision making in my logic I want to know all the table names and their alias in a ...
Varun Rajput's user avatar
1 vote
1 answer
448 views

I'm working with sqlparse and defining my own custom keywords for the dialect I'm using, but I'm noticing that if my keyword 'FACET' appears after my WHERE clause, it gets grouped into the WHERE's ...
schemanic's user avatar
0 votes
2 answers
100 views

What I want to do is: Open a sql file Find a keyword then display the line Keep displaying each line until the next keyword Keep doing 1 - 3 until the end of the file This is my code but it stops ...
codename_zoe's user avatar
-2 votes
1 answer
392 views

Given a SQL query(Oracle) I want to find if column of a particular table is present in it or not. I want to achieve this using Python. I do not have any access to the Database and I needed this for ...
dumb person's user avatar
0 votes
0 answers
67 views

I want to use the antlr PLSQL parser to manipulate my sql code that comes from Oracle Forms. Therefore I created all needed Java classes and now have this Main code that works fine: CharStream ...
Alena 's user avatar
0 votes
0 answers
254 views

I have a use case where I need to check the format of the sql query before sending to the the database for execution. If sql query is not in correct format sqlparse should return the false status, if ...
Rahul Neekhra's user avatar
1 vote
0 answers
1k views

Example query: SELECT empid as 3_e FROM EMP; Error: Exception: org.apache.calcite.sql.parser.SqlParseException: Encountered "3" at line 1, column 17. Was expecting one of: <...
Amit B's user avatar
  • 11
1 vote
1 answer
2k views

I am wokring on SQL code parser in python for further code analysis. I decided to use "sqlparse" python library and after parsing the text I would like to know particular token type such as &...
Juraj's user avatar
  • 63
0 votes
1 answer
117 views

#i am using regex to split this but i am getting wrong results. import re queries =""" INSERT ignore into persons VALUES (15,'Tom D.', 'Erilchsen', 'Skagen 21', 'Erlangen'); select * ...
asheer ali's user avatar
0 votes
1 answer
119 views

I am trying to parse Flink windowing TVF sql column level lineage, I initial a custom FlinkChainedProgram and set some Opt rules. Mostly works fine except Window TVF SQL and CEP SQL. for example, I ...
slo's user avatar
  • 33
0 votes
1 answer
1k views

sql_query = "select T.lk1,T1.lk1 as dc_lk1, T.BB_NOW_name,T.City,T.DC_name,T.SKU_code,T.SKU_description,T.Brand,T.Manufacturer,T.From_Date,T.To_date, T1.DC_CMBQ,T1.DC_AMBQ,T1.DC_ICM,T.BB_NOW_CMBQ,...
Raj's user avatar
  • 1
0 votes
1 answer
920 views

The goal is to parse the sql statement in Python, and I have some difficulties using sqlparse to parse the case statement. I have tried the method in this link Parse CASE WHEN statements with sqlparse,...
Gabriel JIANG's user avatar
1 vote
0 answers
912 views

Queries are read fine when debugging only My Code. However, when disabling the option in Visual Studio in 'Debug > Options > Enable Just My Code', antlr.MismatchedTokenException is thrown for ...
chairmanbertie's user avatar
0 votes
2 answers
2k views

>>> import sqlparse >>> t_sql = """create table dmc_o2_test( ... stuid number(38) primary key, ... stuname varchar2(30) not null ... ) ... ... select * from ...
caiyi0923's user avatar
1 vote
1 answer
2k views

I'm trying to use python library sqlparse to extract the WHERE condition from a SQL statement and represent it in conditional JSON format. I'm interested only in the SQL condition, so the starting ...
Nicola's user avatar
  • 11
0 votes
2 answers
4k views

I am coding in Python. I have query like this: SELECT device_os, count(*) FROM warehouse WHERE device_year <= 2016 GROUP BY device_os; Now, I have some additional filters which are coming ...
Muhammad Muaaz's user avatar
1 vote
1 answer
142 views

Table structure - create table test (month integer, year integer, thresholds decimal(18,2) ); Static insert for simulation - insert into test(month,year,threshold) values(4,2021,100),(5,2021,98),(6,...
ForeverLearner's user avatar
0 votes
1 answer
631 views

I'm focusing on the Where clause of a SQL statement and I'm trying to pull back all the columns used in the Where clause. Below is an example SQL: sql_2 = """Select PERS_ID , STF_NO , ...
MrPaul91's user avatar
-2 votes
1 answer
802 views

I have a java project where PreparedStatements are not being used in any of the SQL query. Now I want to implement PreparedStatements for all those queries. Instead of modifying each query by putting '...
shashank's user avatar