mindsdb / mindsdb_sql

SQL parser and planner used by MindsDB
https://mindsdb.com
GNU General Public License v3.0
55 stars 21 forks source link

Mapping 'using' variables to model #352

Closed ea-rus closed 7 months ago

ea-rus commented 7 months ago

Fixes:

github-actions[bot] commented 7 months ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
mindsdb_sql
   __about__.py10100%1–10
   __init__.py24196%21
mindsdb_sql/parser
   lexer.py165199%243
   logger.py19479%14, 17, 23, 26
   parser.py4563193%48, 53, 73, 77, 81, 87, 91–93, 121–128, 182, 199, 249, 253, 317, 346–347, 367, 378, 491, 526, 557, 567, 581, 657
   utils.py46491%73–79
mindsdb_sql/parser/ast
   base.py36781%13, 28, 31, 49–52
   create.py601673%7–8, 49–54, 73–85
   drop.py52296%10, 13
   insert.py62592%32, 35–37, 42
   show.py48198%18
   update.py53591%40–42, 75–76
mindsdb_sql/parser/ast/select
   case.py26292%19, 22
   constant.py35197%22
   data.py11282%15, 19
   identifier.py64789%43, 80–85
   native_query.py13192%25
   operation.py113695%27–30, 56, 65, 166
   parameter.py11191%10
   select.py97397%148–153
   star.py12283%8–9
   union.py23196%18
mindsdb_sql/parser/dialects/mindsdb
   create_file.py19195%14
   create_predictor.py92199%55
   knowledge_base.py40198%71
   lexer.py235697%332, 334, 336, 348, 350, 352
   parser.py9432697%119, 123, 262, 287, 374, 376, 612, 629, 653–654, 780, 832, 886, 903, 1037, 1047, 1085–1086, 1111, 1122, 1262, 1266, 1319, 1447, 1728, 1736
mindsdb_sql/parser/dialects/mysql
   lexer.py23674%16, 18, 20, 32, 34, 36
   parser.py6152396%131, 133, 226–227, 356, 373, 423, 427, 501, 511, 549–550, 570, 581, 710, 738, 743–745, 749, 766, 910, 1056
   show_index.py171135%10–12, 15–23, 26–27
mindsdb_sql/planner
   plan_join.py2741296%137, 173, 182, 209, 213, 302, 350, 368, 377–378, 406, 408
   plan_join_ts.py1791094%53, 60, 83–84, 129, 181, 185, 193, 265, 332
   query_plan.py22864%13–21, 30
   query_planner.py3856384%41–42, 65–66, 75, 152, 177, 382, 410–488, 531–532, 537, 563, 625, 655, 683, 708–710
   query_prepare.py2846179%76, 78, 86–116, 227, 249, 272, 315, 336, 360, 389–443, 446–452, 483, 496–498, 507, 526
   step_result.py14286%7, 12
   steps.py1742287%14, 19, 27, 32–34, 55–60, 67–73, 110–115
   ts_utils.py66691%59, 61, 81–84, 88
   utils.py2414183%60, 106, 112, 127, 139, 151, 154, 166, 196, 209, 224, 230, 235, 242, 244, 249, 254–257, 262, 267, 273, 279, 282–293, 307, 337–338, 349–350, 365
mindsdb_sql/render
   sqlalchemy_render.py3827082%38, 72, 74, 86, 91, 164–165, 178–179, 203, 233, 235, 264, 276, 282, 333, 396–407, 418–422, 452, 467, 472–482, 491–492, 516–527, 546, 569–593, 601, 605, 627–630, 650–653
TOTAL620348392% 

Tests Skipped Failures Errors Time
664 1 :zzz: 0 :x: 0 :fire: 16.725s :stopwatch: