• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 9591191861

20 Jun 2024 03:31AM UTC coverage: 73.085% (+0.02%) from 73.069%
9591191861

push

github

web-flow
Add support to show ANTLR Batch parsing time along with other explain information (#2647)

This commit adds support to show ANTLR parsing time with EXPLAIN info. With this change, query plan would look like following:
```
1> select 1 + 1
2> select 'abc' + 'def'
3> go

-----------
          2

(1 rows affected)
QUERY PLAN
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Query Text: select 1 + 1
Result  (cost=0.00..0.01 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=1)
Planning Time: 0.389 ms
Execution Time: 0.057 ms

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
abcdef

(1 rows affected)
QUERY PLAN
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Query Text: select 'abc' + 'def'
Result  (cost=0.00..0.01 rows=1 width=32) (actual time=0.025..0.026 rows=1 loops=1)
Planning Time: 0.219 ms
Execution Time: 0.083 ms

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Babelfish T-SQL Batch Parsing Time: 103.177 ms
```

Task: BABEL-3650
Signed-off-by: Dipesh Dhameliya <dddhamel@amazon.com>

41 of 43 new or added lines in 2 files covered. (95.35%)

42353 of 57950 relevant lines covered (73.09%)

108365.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.56
/contrib/babelfishpg_tsql/src/iterative_exec.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc