ayman-sigma commented on code in PR #1539: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1539#discussion_r1851069862
########## src/parser/mod.rs: ########## @@ -4294,7 +4312,9 @@ impl<'a> Parser<'a> { let mut data_type = self.parse_data_type()?; if let DataType::Custom(n, _) = &data_type { // the first token is actually a name - name = Some(n.0[0].clone()); + match n.0[0].clone() { + ObjectNamePart::Identifier(ident) => name = Some(ident), Review Comment: Once we start adding more to the `ObjectNamePart` enum, we will return parsing error for the other variants here. -- 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 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