This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 097e893f92 Add `cfg(feature = "avro")` attribute to Avro example in 
SQL API docs (#17142)
097e893f92 is described below

commit 097e893f92cf5859d31e18697fadd30985497825
Author: kosiew <kos...@gmail.com>
AuthorDate: Wed Aug 27 22:52:03 2025 +0800

    Add `cfg(feature = "avro")` attribute to Avro example in SQL API docs 
(#17142)
    
    * docs: add feature flag for Avro support in SQL API example
    
    * docs: update code block syntax for memory allocator example in crate 
configuration
    
    * docs: update code block syntax for CSV example in UDFs documentation
    
    * chore(deps): add snmalloc-rs dependency version 0.3
    
    * fix(docs): update Avro example to conditionally compile and remove empty 
code block
    
    * feat(ci): add snmalloc build dependencies installation to workflows
    
    * feat(ci): add installation of cmake system build dependencies in workflows
    
    * fix(docs): correct formatting of Avro example code block in SQL API 
documentation
    
    * Restore main's dependencies, ci workflow
    
    * fix: update code block to ignore execution requiring snmalloc in 
crate-configuration.md
    
    * revert md block to no-run
    
    * revert block text to csv
---
 docs/source/library-user-guide/using-the-sql-api.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/source/library-user-guide/using-the-sql-api.md 
b/docs/source/library-user-guide/using-the-sql-api.md
index f78cf16f4c..8b8ba2a371 100644
--- a/docs/source/library-user-guide/using-the-sql-api.md
+++ b/docs/source/library-user-guide/using-the-sql-api.md
@@ -119,6 +119,8 @@ async fn main() -> Result<()> {
 DataFusion can also read Avro files using the `register_avro` method.
 
 ```rust
+# #[cfg(feature = "avro")]
+{
 use datafusion::arrow::util::pretty;
 use datafusion::error::Result;
 use datafusion::prelude::*;
@@ -154,6 +156,7 @@ async fn main() -> Result<()> {
     );
     Ok(())
 }
+}
 ```
 
 ## Reading Multiple Files as a table


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

Reply via email to