我们有Azure数据湖,它以三角洲湖格式将数据存储在拼花文件中。每次运行后,将新数据合并到一起,我们将真空保留0小时,以删除旧文件并运行optimize命令。
但是由于某些原因,旧文件没有被删除。虽然在databricks笔记本中没有错误。它说2文件已删除,但我仍然看到它们。我缺少明显的东西吗?谢谢!
const badges = document.querySelectorAll(".badge-card");
//Declaring the variables
let hasFlippedCard = false;
let isBoardLocked = true;
let cardOne, cardTwo;
let noOfMatches = 0;
//Funtion to randomise the cards
(function randomiseCards() {
badges.forEach((card) => {
let ramdomPos = Math.floor(Math.random() * 16);
card.style.order = ramdomPos;
});
})();
badges.forEach((card) => card.addEventListener("click", flipCard));
//Funtion to flip the cards
function flipCard() {
if (isBoardLocked) return;
if (this === cardOne) return;
this.classList.add("flip");
if (!hasFlippedCard) {
hasFlippedCard = true;
cardOne = this;
return;
}
cardTwo = this;
isBoardLocked = true;
checkForMatch();
}
//Funtion to check for matches
function checkForMatch() {
let isMatch = cardOne.dataset.framework === cardTwo.dataset.framework;
if (isMatch) {
countMatches();
disableCards();
} else {
unflipCards();
}
}
//Funtion to count matches of cards
function countMatches() {
noOfMatches = noOfMatches + 1;
if (foundAllMatches()) {
alert("Congratulations you got all " + noOfMatches + " matches");
stopGame();
}
}
//Funtion to check if user has found all matches
function foundAllMatches() {
if (noOfMatches == badges.length / 2) {
return true;
} else {
return false;
}
}
//Funtion to disbale the cards
function disableCards() {
cardOne.removeEventListener("click", flipCard);
cardTwo.removeEventListener("click", flipCard);
resetBoard();
}
//Funtion to unflip the cards
function unflipCards() {
setTimeout(() => {
cardOne.classList.remove("flip");
cardTwo.classList.remove("flip");
//time to flip card back over
resetBoard();
}, 900);
}
//Funtion to reset the board
function resetBoard() {
hasFlippedCard = false;
isBoardLocked = false;
cardOne = null;
cardTwo = null;
}
//Funtion to unflip cards at end of game
function unflipAllcards() {
$(".flip").removeClass('flip');
}
//Timer and start game button
let timeContainer = $('#timer-value');
let startButton2 = $('#start-game')
let timer = 0;
let maxTime = 60;
let timeout = null;
function count() {
timeout = setTimeout(function () {
if (timer < maxTime) {
timer++;
$(timeContainer).text(timer)
count();
} else {
alert("Time's up! You got " + noOfMatches + " matches");
startButton2.show()
stopGame();
}
}, 1000);
}
//Start game button
function startGame() {
if (timeout) {
clearTimeout(timeout);
}
timer = 0;
$(timeContainer).text(timer)
startButton2.hide()
count();
isBoardLocked = false;
}
//Funtion for stopping the game
function stopGame() {
if (timeout) {
clearTimeout(timeout);
startButton2.show()
}
timer = 0;
$(timeContainer).text(timer)
isBoardLocked = true;
unflipAllcards();
}
答案 0 :(得分:1)
您不能直接在云存储上使用
VACUUM
。要真空存储,必须将其安装到DBFS ,然后在已安装的目录上运行VACUUM。