Commit 1f80ab0
chore: Improve cassandra grammar compatibility (#16)
* chore: add cql grammar
* ci: add cql parser to test workflow
* feat: improve Cassandra CQL grammar compatibility for version 5.0
- Add VECTOR data type support for AI/ML workloads (VECTOR<type, dimensions>)
- Add Storage-Attached Index (SAI) syntax (CREATE INDEX USING 'sai'/'StorageAttachedIndex')
- Add vector search with ORDER BY ANN OF syntax for similarity searches
- Add enhanced JSON support with DEFAULT UNSET clause
- Add modern CQL functions (now(), currentTimestamp(), fromJson(), toJson(), etc.)
- Add DURATION data type support
- Fix typo: kwDescibe -> kwDescribe
- Add comprehensive test examples for all new features
- Rename test files for clarity (e.g., vectorTable.cql -> createTableVector.cql)
These changes enable Bytebase to parse modern Cassandra 5.0 features including
vector search capabilities, SAI indexes, and enhanced JSON operations.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent ee121fb commit 1f80ab0
File tree
15 files changed
+6037
-4059
lines changed- cql
- examples
15 files changed
+6037
-4059
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
177 | 184 | | |
178 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
179 | 196 | | |
180 | 197 | | |
181 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
532 | 542 | | |
533 | 543 | | |
534 | 544 | | |
| |||
538 | 548 | | |
539 | 549 | | |
540 | 550 | | |
541 | | - | |
542 | | - | |
543 | 551 | | |
544 | 552 | | |
545 | 553 | | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
659 | 663 | | |
660 | 664 | | |
661 | 665 | | |
| |||
706 | 710 | | |
707 | 711 | | |
708 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
709 | 722 | | |
710 | 723 | | |
711 | 724 | | |
| |||
768 | 781 | | |
769 | 782 | | |
770 | 783 | | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
771 | 794 | | |
772 | 795 | | |
773 | 796 | | |
| |||
854 | 877 | | |
855 | 878 | | |
856 | 879 | | |
| 880 | + | |
| 881 | + | |
857 | 882 | | |
858 | 883 | | |
859 | 884 | | |
860 | 885 | | |
| 886 | + | |
861 | 887 | | |
862 | 888 | | |
863 | 889 | | |
| |||
994 | 1020 | | |
995 | 1021 | | |
996 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
997 | 1039 | | |
998 | 1040 | | |
999 | 1041 | | |
| |||
1002 | 1044 | | |
1003 | 1045 | | |
1004 | 1046 | | |
1005 | | - | |
| 1047 | + | |
1006 | 1048 | | |
1007 | 1049 | | |
1008 | 1050 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments