Story Details

  • SQL pipe syntax available in public preview in BigQuery

    Posted: 2025-02-10 10:38:29

    BigQuery now supports SQL pipe syntax in public preview. This feature simplifies complex queries by allowing users to chain multiple SQL statements together, passing the results of one statement as input to the next. This improves readability and maintainability, particularly for transformations involving several steps. The pipe operator, |, connects these statements, offering a more streamlined alternative to subqueries and common table expressions (CTEs). This syntax is compatible with various SQL functions and operators, enabling flexible data manipulation within the pipeline.

    Summary of Comments ( 40 )
    https://news.ycombinator.com/item?id=42998904

    Hacker News users generally expressed enthusiasm for BigQuery's new pipe syntax, finding it more readable and maintainable than traditional nested queries. Several commenters compared it favorably to dplyr in R and praised its potential for simplifying complex data transformations. Some highlighted the benefits for data scientists and analysts less familiar with SQL intricacies. A few users raised questions about performance implications and debugging, while others wondered about future compatibility with other SQL dialects and the potential for integration with tools like dbt. Overall, the sentiment was positive, with many viewing the pipe syntax as a significant improvement to the BigQuery SQL experience.