flycash commented on issue #14061:
URL:
https://github.com/apache/shardingsphere/issues/14061#issuecomment-998815517
# Change Scope
I check the documents and the source code, and I may miss something, feel
free to let me know.
## Parser
### Add a new module shardingsphere-sql-parser-hbase
- antlr4: don't need to write all rules, can add more rules if needed
- hbase parser package:
- `HBaseLexer`
- `HBaseParser`
- `HBaseParserFacade`
- hbase visitor package:
- `HBaseDMLStatementSQLVisitor`: only support DML in phase1
- `HBaseStatementSQLVisitorFacade`
- resources: HBase SPI config
### Add a new package in shardingsphere-sql-parser-statement
Parse statements and segments
## Add a new DataType
- Implement `DatabaseType`
- Implement `DialectTableMetaDataLoader`
## Proxy
- Implement `DatabaseProtocolFrontendEngine`
- Implement `JDBCDriverURLRecognizer`
# Questions
I don't know if we can use some frameworks like [Apache
Phoenix](https://phoenix.apache.org/) to help us convert the SQL to HBase
queries. But if we choose to use Apache Phoenix, it looks like shardingsphere
only need to do a few things. Or shardingsphere has to "compiles it into a
series of HBase scans, and orchestrates the running of those scans to produce
regular JDBC result sets"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]