러한 비현실적인 값을 쉽게 피할 수 있습니다. 또한앞에서 감지한널값도 제거할 수 있습니다.
널값도 해당 범위에 포함되지 않기 때문입니다.
빅쿼리에서
DDL
문으로 쿼리 결과 저장하기
NULL
을 포함한 원치 않는 값을 필터링하는 쿼리를 작성하기에 앞서, 쿼리 결과가
ML
모델을
학습시키는 데 어떻게 이용될지를 생각해 보면 좋습니다. 이 작업은 빅쿼리의
DDL
문으로 수
행할 수 있습니다.
DDL
은
데이터 정의 언어
data
definition
language
의 약자로, 테이블과 같은 데이터
셋의 객체를 만들고 수정하는문법을 말합니다. 가령 다음처럼
CREATE
TABLE
문을 사용해 신
규 테이블을 생성할 수 있습니다.
CREATE TABLE
table_name
AS
query_statement
이 쿼리는
table
_
name
이라는 이름의 신규 테이블을 만들고,
query
_
statement
의 결과를 이
테이블로 저장합니다. 한편,
CREATE
TABLE
은 테이블이 이미 존재하는 경우에는 오류를 발생
시킵니다.이럴 때는 기존 테이블을 덮어쓰는 옵션이 포함된
CREATE
OR
REPLACE
TABLE
문을
사용하면 됩니다.
CREATE
TABLE
문으로 쿼리 결과를 저장하는 방법을 알았으므로, 이제 발전소 원시 데이터를
정리하는 쿼리를 작성하고, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.