wugeer opened a new issue, #1631:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1631

   the example from 
   
https://github.com/apache/datafusion-sqlparser-rs/blob/fe360208900a287872fc9875e9e6cb7d3a662302/src/ast/visitor.rs#L183
   
   ant run result is follow
   
   ```
   cargo run
      Compiling sqlparser-for-table v0.1.0 
(/home/xiehw/code/person/rust/sqlparser-for-table)
   error[E0432]: unresolved imports `sqlparser::ast::Visit`, 
`sqlparser::ast::Visitor`
     --> src/main.rs:16:22
      |
   16 | use sqlparser::ast::{Visit, Visitor};
      |                      ^^^^^  ^^^^^^^ no `Visitor` in `ast`
      |                      |
      |                      no `Visit` in `ast`
      |
   note: found an item that was configured out
     --> 
/home/xiehw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlparser-0.53.0/src/ast/mod.rs:38:24
      |
   38 | use sqlparser_derive::{Visit, VisitMut};
      |                        ^^^^^
   note: the item is gated behind the `visitor` feature
     --> 
/home/xiehw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlparser-0.53.0/src/ast/mod.rs:37:7
      |
   37 | #[cfg(feature = "visitor")]
      |       ^^^^^^^^^^^^^^^^^^^
   
   For more information about this error, try `rustc --explain E0432`.
   error: could not compile `sqlparser-for-table` (bin "sqlparser-for-table") 
due to 1 previous error
   ```


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to